dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Need help with flash animation.

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Need help with flash animation.

    I'm designing a flash animation right now for my website and basically what i want it to do is play everytime the user on the page hovers the mouse cursor over the movie clip. Can anyone tell me what code i'd need to use to achieve this effect? I'm using actionscript 2 if that helps.

  2. #2
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,930
    Put a shape over the entire stage, make it a movieclip, set the alpha to 0, give it an instance name of roll_mc and add the following code to the main timeline:

    Code:
    roll_mc.onRollOver=function(){
         this._parent.gotoAndPlay(1);
    }
    Hope that helps!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

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