Friday, July 18, 2008

Flex : Self Growing Button

I have been experimenting around with flex , figured out you can make a Self growing button easily in flex.

< id="button1" label="Click to Increase Size" height="20" click="button1.width+=10;button1.height+=5; ">

I am not trying to display something unusual here. But just a thought its so easy in Flex. If I had to do something similar in JSF or Ajax then it would have involved lot more coding and would use Partial Page Refresh.

No comments: