PDA

View Full Version : MCs as buttons and transparency


psycholodj
04-06-2008, 09:36 PM
OK, break it to me easy.

Using AS3, is it possible to make these 5 levers (and 5 more on the other side of the stage) work properly as button MCs? The levers are PNG frame sequences that get imported at the size of the stage (makes it much easier to update them and have the levers always be in the exact right place).

When I add mouse down events to the class I have created for the levers, the top most lever obscures all the others, even though most of its MC is transparent.

So can I code them to act like buttons, but only where there is visible lever and not where there is transparency?

The goal is to have levers that toggle. So you would press any lever, it would animate to the end of the frame sequence, and then the associated panel would open.

Thanks for any advice!

mojito
04-08-2008, 02:02 PM
Using movie clips you can code transparent areas to act as invisible buttons. These would sit over the png sequences and they are separate things, the buttons just tell the sequences to play.
Thats what I would do.

:o