PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Creating Rollover Effect w/ nested movieclips
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Creating Rollover Effect w/ nested movieclips

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    24

    Creating Rollover Effect w/ nested movieclips

    I'm using AS2...
    Ok so on the main timeline I have two movieclips. One is called exitBtn and one is called back_mc. Then, there is a mc inside of back_mc that's called cta.

    I want the cta movieclip to play an animation on a frame labeled "rollOver" when the user rolls over the mc exitBtn.

    This is what I currently have on the main timeline (which isn't working)...

    Actionscript Code:
    exitBtn.on(rollOver){
        back_mc.cta.gotoAndPlay("rollOver");
    }

  2. #2
    Senior Member Steven FN's Avatar
    Join Date
    Mar 2010
    Location
    CA, USA
    Posts
    276
    Hi, your function is properly coded. Use the following:

    Code:
    exitBtn.onRollOver = function(){
       // back_mc.cta.gotoAndPlay("rollOver");
       trace("It works");
    }
    Use TRACE to troubleshoot functions to make sure they actually do something.

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