A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: duplicateMovieClip

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    13

    duplicateMovieClip

    I have created a movie clip that has buttons on it which need to refer to the main timeline. The clip is duplicated using the duplciateMovieClip function, but now the buttons don't work. Anyone know what is going on here?

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You have to reference the right timeline.

    on(release){
    _root.gotoAndPlay(5);
    }

    ...or better, use framelabels.

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

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

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    13
    I do use _root.gotoAndPlay(...), but it still does not work, or if I use a scene and frame, it will always go to the first scene. I am very confused by this!

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You can not reference scenes from outside the main timeline.
    Did you name the frame (framelabel)?
    Show me your button actions and what you named the frame.
    If your movie is loaded into a movieclip it wont work ( just making shure).

    -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