PDA

View Full Version : Buttons inside MC's? (rollOver)



Lill
July 24th, 2007, 05:49 AM
Hello, My name is Lill.

I know that there is an issue concerning a button inside a movie clip, if both the movie clip and button has a rollover function. Is it a way to make it work, nonetheless?

Here is my swf so you'll see the setup.
http://img172.imageshack.us/my.php?image=infoportalkortxl7.swf


Basicly i hope to get the buttons that are inside the mc, to work.
(PS: there is nothing yet happening with on press/release. But I tried putting a rollover function)

Edit: Added a zip file containing FLA

provdes
July 24th, 2007, 07:19 AM
How about using movieclips inside the movieclip for the buttons instead?

You should be able to add all the functionality you need to the movieclips to make them react just like buttons (better in fact).

Jt_01
July 24th, 2007, 12:47 PM
You can't have actions on clips that have nested buttons. Something to do with event bubbling...

Anyway just add a script to the main timeline taht detects your mouse positon reelative to your clip, and if it gets close then scroll the popup.

Ok?

graylensman
July 24th, 2007, 02:21 PM
Read this:http://www.senocular.com/flash/tutorials/buttoncapturing/

Senocular knows all.

rabidGadfly
July 24th, 2007, 03:35 PM
...or read this: http://www.rabidgadfly.com/?p=33

Nothing wrong with a little shameless self-promotion, is there? ;)

Lill
July 25th, 2007, 03:59 AM
Yay! thanks! I got it to work! :thumb: