A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: scripting within a movie clip

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Posts
    13

    scripting within a movie clip

    hi!
    i have created a movie clip, but wen it gets to the end of it i want it to move to the next frame on my main timeline, not in the movieclip. i have tred the following codes .

    gotoAndStop("scene 1",2)
    and
    _root.gotoAndStop(2)

    both don't work.

    can anyone help me out please.

    cheers
    Chris

  2. #2
    do you want the timeline to mive in a diffent scene?

    if the movie clip is in the same scence use _parent.gotoAnd... you may need more than 1 _parent depending on how deep the movie clip is.

  3. #3
    Junior Member
    Join Date
    Sep 2004
    Location
    london UK
    Posts
    2
    Have you tried naming the the frame you want to go to in the main timeline, say call it 'start', and then use

    _root.gotoAndPlay('start')

    at the relevant point in your movie ?
    -- only connect --

  4. #4
    using _root creates bad habits that won't work well in more advanced flash systems. It works better with _parent

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