|
-
movieClip inside MovieClip
I have a main movieClip called mainButt and inside that it has a subButt movieClip.
I'm trying to find a way to be able to have events on both. So when you rollOver the mainButt its onRollOver is active and then when you rollover the subButt that's inside mainButt that onRollOver is active. Can this be done.
Code:
mainButt.onRollOver=function(){
trace("over main butt");
}
mainButt.subButt.onRollOver=function(){
trace("over sub butt");
}
This structure has to stary so just want to know if this can be done or will the maniButt always take preferance over the subButt.
Thanks,
-
Hey Timmy!!!
Howdy, well your way should work. Have you tested it out
-
no it does not work as the mainButt is taking preferance over the subButt. So if you rollOver the subButt inside the mainButt it will not allow the rollOver event to trigger.
-
Hey Timmy!!!
Okay, I'm guessing you have a roll over state for the main button. On the end frame of that roll over put your sub button code.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|