I have a couple of states defined in my MXML and I want to change the
color values - preferably data bind them to a variable. But when I do,
I get a compiler error #1119:Access of possibly undefined property.
Does anyone know how I can get the value from my ActionScript to these
states? I'm assuming its a scoping issue

<qs:states>
        <mx:State id="navState" name="selected"  >
                <SetProperty name="filters">
                        <value>
                        <Array>
                                <f:GlowFilter  color="{glowColor}"/>
                        </Array>
                        </value>
                </SetProperty>
                <SetStyle id="sColor" name="color" value="{selectedColor}" />
        </mx:State>
        <mx:State name="hilighted">
                <SetProperty name="filters">
                        <value>
                        <Array>
                                <f:GlowFilter  color="#BBBBBB"/>
                        </Array>
                        </value>
                </SetProperty>
        </mx:State>
</qs:states>

Reply via email to