Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5A2810B98 for ; Mon, 3 Feb 2014 20:49:24 +0000 (UTC) Received: (qmail 19143 invoked by uid 500); 3 Feb 2014 20:49:00 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 18937 invoked by uid 500); 3 Feb 2014 20:48:49 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 18797 invoked by uid 99); 3 Feb 2014 20:48:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 20:48:45 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of evyatarbh@gmail.com designates 209.85.220.182 as permitted sender) Received: from [209.85.220.182] (HELO mail-vc0-f182.google.com) (209.85.220.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 20:48:41 +0000 Received: by mail-vc0-f182.google.com with SMTP id id10so5092236vcb.41 for ; Mon, 03 Feb 2014 12:48:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bPy5T+BcjXN7nKaDleLFJqDTLHAeAVw/E4EMdGPOe4o=; b=wy9R4PQ36OP8Dm2FWTMDGdA9UhuJ6XWYg570SwC8XWLRC1X/+dpUVlexv4vUh3vOc5 qMGNXvrxIi/Z/rmcHHACGFB077YqkXvEJ8j4ClkJYhdNKKWViKv9MAI4VVUR317eW8NK ywFe8nTDwpAXM7Eu8sqG/xXdI+Ev1LyillM91aIcmfSV2eNJ5vht++KSczuqdnYTWP52 5+VNAorLQRk3gYrj1ecQkmRr8XTejw98P0rwxV0iEyOVhN1wJVThi2hZrMEM8+f/VN+M xRLeCrQZdOuZLEzYfQzZLw6obIq/Ef24YIwYjCRPzKl54ScARfLmA+bAjEDOWKcHIGRk yinA== MIME-Version: 1.0 X-Received: by 10.58.49.129 with SMTP id u1mr30692117ven.0.1391460500892; Mon, 03 Feb 2014 12:48:20 -0800 (PST) Received: by 10.220.14.130 with HTTP; Mon, 3 Feb 2014 12:48:20 -0800 (PST) In-Reply-To: <1391443700180-4777.post@n4.nabble.com> References: <1390681345883-4615.post@n4.nabble.com> <2095F5EBE04D59409DFCE91FFCEBF7AFAF29A930@EXMBX05.netplexity.local> <1390739108058-4620.post@n4.nabble.com> <1390809550139-4633.post@n4.nabble.com> <2095F5EBE04D59409DFCE91FFCEBF7AFAF29AEB2@EXMBX05.netplexity.local> <1391278968943-4739.post@n4.nabble.com> <1391443700180-4777.post@n4.nabble.com> Date: Mon, 3 Feb 2014 22:48:20 +0200 Message-ID: Subject: Re: RE:Can I Bind a SolidColor Fill Value? From: Evyatar Ben Halevi-Arbib To: users@flex.apache.org Content-Type: multipart/alternative; boundary=089e013c7136dff22604f186a4e2 X-Virus-Checked: Checked by ClamAV on apache.org --089e013c7136dff22604f186a4e2 Content-Type: text/plain; charset=ISO-8859-1 You can extend HSlider, add a selectionColor property to it, define the custom component as the host component of your skin and then you can access the property from the skin using "hostComponent.selectionColor". Good luck, Evyatar On Mon, Feb 3, 2014 at 6:08 PM, Tintin <1955.mille.miglia@googlemail.com>wrote: > OK, I'm back on it. > > Can I be clear about my scenario. I have a very simple 'view' item (named > SliderView) which includes a SWFObject and a Spark HSlider beneath it. I > want the button on my HSlider to change colour depending on a value in the > presenter actionscript file (named SliderView_Presenter). Here's the top of > my SliderView mxml file: > > xmlns:fx="http://ns.adobe.com/mxml/2009" > xmlns:s="library://ns.adobe.com/flex/spark" > xmlns:mx="library://ns.adobe.com/flex/mx" > xmlns:presenters="presenters.*" > creationComplete="presenter.onCreationComplete(event)"> > > > > > > > I have created a Skin for the HSlider (named SliderSkin) and set the > skinClass property accordingly. > > As I see it I could approach this in a few ways: > > 1. My SliderView_Presenter class is passed a parameter from the host html > page which determines the button colour. I could declare a variable of Type > sparkSkin and using a switch function set this to one of several predefined > skins depending on the parameter passed in. This variable could be bound to > the skinClass property of the HSlider. This keeps everything within > SliderView which is bound to SliderView_Presenter. > > 2. My skin definition could change the colour of the Thumb graphic if it > could be bound, or be passed, the parameter when set in > SliderView_Presenter. > > Could I use a CSS Style and get/set the value? Skins are new to me and I'm > floundering a little! > > Chris > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Can-I-Bind-a-SolidColor-Fill-Value-tp4615p4777.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > --089e013c7136dff22604f186a4e2--