firemonkey
firemonkey

Reputation: 329

adobe flex button change style by actionscript

I have a button to which I have applied stylesheet(below) which works great.

.toolButton { up-skin :Embed(source='resources/angle.png'); over-skin :Embed(source='resources/angleH.png'); down-skin :Embed(source='resources/angle.png'); }

Now, I have a new requirement where I need to keep the button in pressed(down) state until the user clicks on this button again. What is the best way I can achieve this.

thank you

Upvotes: 0

Views: 461

Answers (1)

Vlad Grigorov
Vlad Grigorov

Reputation: 11386

Use ToggleButton. There is an example at Flex Examples.

For Flex 3 I suppose a ToggleButtonBar with a single button in it would do.

Upvotes: 1

Related Questions