A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: from movie clip to frame in scene

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    3

    from movie clip to frame in scene

    hey,
    how can i do this:
    i have a movie clip, but when it ands i want dat it goes to a frame in the scene (with a little script)
    thx

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Make a framelabel on the frame you want to go to. Then make a goto action in the last frame of the movieclip.

    _root.gotoAndPlay("myFrameLabel");

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

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    3
    thx
    but I've asked also on a other flash forum, and there they say:

    _parent.gotoAndPlay(framenumber)

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Its safer with labels as they are absolute. As you cant specify a scene ( from inside a movieclip ) Flash cant know if you mean frame 2 in scene 1 or scene 2 or...

    Just try it it with labels and youll see it works fine.

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

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