Hi all,
I have the following problem. I am trying to set the values of a HSlider with two thumbs from an expression.
<mx:HSlider id="size" x="0" y="144" width="228" liveDragging="true" thumbCount="2" snapInterval="100" minimum="10" maximum="{maxArea}" values="[{minArea}, {maxArea}]"/>
I calculate minArea and maxArea from an expression which is later distributed to the hslider. However it does not work. If I alert the values property of the hslider it comes back Nan, Nan. If I bind the value parameter to one of the maxArea or mimArea it eorks like a charm.
So, in short, am I doing the binding properly or the array does not support expressions, or is it something third?
Thanks in advance,
Best regards,
vasko
Well, I managed to answer my question right after posting it, after it has been bothering me for a couple of hours.. ![]()
the problem was in the brackets:
this dows not work:
<mx:HSlider id="size" x="0" y="144" width="228" liveDragging="true" thumbCount="2" snapInterval="100" minimum="10" maximum="{maxArea}" values="[{minArea}, {maxArea}]"/>
this does:
<mx:HSlider id="size" x="0" y="144" width="228" liveDragging="true" thumbCount="2" snapInterval="100" minimum="10" maximum="{maxArea}" values="{[minArea, maxArea]}"/>
Cheers...
North America
Europe, Middle East and Africa
Asia Pacific