A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: replay movie from within clip

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    13

    replay movie from within clip

    I have a button within a movie clip in the main time line of the second scene of my FlashMX .fla.

    When you click it I want it to replay the whole movie ie. go back to frame one of Scene 1 and play. If I move the button out of the movie clip and onto the main timeline it works but if it's inside a movie clip it doesn't. What gives??!

    cz

  2. #2
    Senior Member charlie_says's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    508
    probably need to add a _root
    i.e.
    _root.whateverMC.gotoandPlay()

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Yes _root would have to be added, but you can't target a scene name, if that's what you were doing.
    You must target a frame number, or much better, a labeled frame on the main timeline...
    code:

    on(release){
    _root.gotoAndPlay("frame_label");
    }


  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    13
    thanks guys

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