{} only works in MXML, not in actionscript.  I would just listen for the RESIZE 
event and update the height then

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jo 
Morano
Sent: Monday, September 01, 2008 3:25 PM
To: [email protected]
Subject: [flexcoders] Trying to set the height of sliderthumbclass based on the 
height of a VBox ...

For my horizontal slider, I want a long vertical line as the thumb. I was able 
to do that fine using a SliderThumbClass where I assigned a small vertical line 
image and then set the height to 250 and used thumboffset appropriately to make 
it go below the slider.

Now however, I want this height to be based on the height of a VBox that gets 
populated dynamically with elements. I tried to bind by using

  this.height = "{myVBox.height}";

but that's somehow not doing anything. Using teh variable in MXML in the thumb 
offset (val/2) works fine but I have the image at the original size. What's 
going on? Is there a way to embed a slider thumb class directly in mxml where I 
could use the binding? Or is there a different way to bind these variables?

Reply via email to