Tag Archives: Flash

AS3 – Which button is pressed?

OK this is a simple one, yet quite handy trick.

Problem

You need to show to the user which button is pressed – but also, if the user presses another button of your buttons-group to “unpress” the previous one.

Here’s what we are trying to do:

[swfobj src=”http://0x109.tuxfamily.org/wp-content/uploads/2011/12/buttons_full_functioning.swf” width=”150″ height=”200″] Continue reading