PDA

View Full Version : Buttons with in a Movie Clip


theonyxguy
06-17-2005, 02:15 AM
I'm fairly new to Flash but I've been working on this problem for a while now. I tried creating a drop down menu the way I thought it should work. I went on the basis that when you add a stop to a timeline/movie clip that it won't stop the timeline/movie clip within it. However, my buttons don't work. Although I've found one that uses the command hittest, I want to know where is the fault in my thinking using on(rollover) and stop();?

Any insight would be greatly appreciated. I've added the .fla file and I added the script to the mc instance instead of to a frame (that causes me more problems that I'm trying to figure out as well).

oldnewbie
06-17-2005, 05:54 AM
Unexpected file format! Can't open your .fla.
You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.

You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.

In any case, try this one...

theonyxguy
06-17-2005, 03:14 PM
Yours is the one I found in another post that I made reference to the hittest that I'm going to be using. I want to know why I need to think hittest instead of onrollover and stop? Other than the fact that it just doesn't work, what is the fault in my thinking or writing?

Actually, I need to know why it doesn't work because I have another part of my project that has a mc that is always moving. But when you rollover it I need it to stop moving but keep the buttons active.

Here it is again saved as MX.

Thanks for the help.

oldnewbie
06-18-2005, 04:39 PM
When you apply button handlers to a movie clip, these will override any actions on other buttons nested within that mc... That's why you'd use a hitTest on the clip itself, so that the buttons within can remain active.

theonyxguy
06-19-2005, 05:22 AM
Thank you very much for the info.