A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: movieClip inside MovieClip

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    996

    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,

  2. #2
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Howdy, well your way should work. Have you tested it out

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    996
    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.

  4. #4
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center