A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: mc syntax question

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Location
    NYC
    Posts
    102

    mc syntax question

    I have a movie clip with three sections (separated by frame labels) in it. I want to add mouse out/over events for the instance of this clip that trigger it to "gotoandplay" different frames. What is the syntax I need to apply on the instance of the movie?

    I started off with:

    mc_clip1.onRollOver {
    gotoAndPlay(this.'scene1');

    mc_clip1.onRollOut {
    gotoAndPlay(this.'scene2');

    etc.

    Thx

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Code should be on a frame in the same timeline as the movieclip is on. If you refer to framelabels....


    mc_clip1.onRollOver=function() {
    mc_clip1.gotoAndPlay("myFrameLabel");
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Location
    NYC
    Posts
    102
    it worked, THANKS!

    =8-)

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