PDA

View Full Version : MCs as buttons and transparency


psycholodj
04-06-2008, 08:35 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!

psycholodj
04-06-2008, 08:39 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!