Excellent!! binding has done the trick. thanks
--- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED]
wrote:
Ah, ok. So if you want to clip 20 pixels, then you need to make
sure that
button2 is always 20 pixels wider than the enclosing canvas. You
can make
use of binding:
hi Jason
How can I keep this effect if i modify your example to become
mx:HBox width=100% height=100 backgroundColor=yellow
mx:Button label=number1 width=75%/
mx:Canvas width=25% horizontalScrollPolicy=off
mx:Button width=100 label=number2/
/mx:Canvas
/mx:HBox
thanks
I'm not sure exactly what effect you want. Do you always want a part of button2 to be clipped off the right? If so, by how much?What's happening in my example is that the nested Canvas gives button2 only 25% of the available horizontal space. When the HBox was 300 pixels wide, that gave it 75
sorry, the width of button2 should have been 100% (i only want to
specify percentage widths).
I'm not sure exactly what effect you want. Do you always want a
part of
button2 to be clipped off the right? If so, by how much?
Thats correct. i want to have part of the button clipped off to
Ah, ok. So if you want to clip 20 pixels, then you need to make sure that button2 is always 20 pixels wider than the enclosing canvas. You can make use of binding:mx:HBox width=100% height=100% backgroundColor=yellow
mx:Button label=number1 width=75%/ mx:Canvas id=mycanvas width=25%
Mike and Tom thanks for the input.
firstly, I tried using clipContent before but doesn't work.
if i was dealing with fixed widths and set the
horizonatalScrollPolicy 'off', i can achieve the effect i was
looking for eg
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
6 matches
Mail list logo