goto next scene from movie clip

Posted on 2003-03-13
Medium Priority
Last Modified: 2008-03-17
I have a movie clip that ends with a 'goto next scene' action. when I drag this movie-clip from the library onto the main time-line, the action doesn't work.

I've tried running a goto next scene action directly off the main time-line and it works fine. It seems that it doens't want to work when it's running from a movie clip.

Can anyone help, or is this just a feature of flash that I'm going to have to put up with?!

Question by:arghh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8128259
Propably the problem is that the movieclip wants to go to the next scene in the movieclip itself.

You need to refer the action to your main document.

You can try the following (don't have flash here, so i can't try it myself)

gotoAndPlay (movie1.yournextscene);

or this might work

tellTarget ("_root.Yournextscene") {
gotoAndPlay ("01")

Hope i helped
LVL 23

Expert Comment

by:Saqib Khan
ID: 8128805
ok Lets say your MovieClip is on "Scene 2" and You want to send your Movie back to scene1 from Scene2. The Easy way to solve this problem is to use Frame Label. In your Scene 1 Give any of your frame a Label. Then at the end of your time line at  scene 2 movieCLip add the following

_root.gotoAndPlay(" frame_label_name_here ")

Flash does not understand by defining frame Numbers when you deal with different Scece TimeLines, so try with the "_root" and define the Frame Label.

Expert Comment

ID: 8128929
Try this code. When coding this, remeber about the levels thing.
The higher the level, the more info you need to enter. I had this problem once, so I used the this._root action and that seemed to work.  Think of html Hierarchial, the different levels of folders. Such as images, might be in ../images as aposed to /images.

Hierarchial works all most the same way in flash, except action scripts work like using this. Which means the current MC. or _parent etc. you also may need to add multible _root._root Give it a try.
If not try the following code:


or try this.

this._root.gotoAndPlay(" name of label")

Hope this helps if not send me the file and I will try and make it work.

e-mail address is located here. http://www.northsidemedia.com

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 23

Expert Comment

by:Saqib Khan
ID: 8129019
imageman I think thats that I explained earlier?
LVL 23

Expert Comment

by:Saqib Khan
ID: 8129065
imageman I think thats that I explained earlier?

Expert Comment

ID: 8129092
You did not seem to answer it that way. Just trying to help this guy out.

Expert Comment

ID: 8129875
form the movieclip try this

_root.gotoAndPlay ("yournextscene",1);

"yournextscene" <- must be string in quote marks and one word.

LVL 23

Expert Comment

ID: 8132014
you could also write a function on frame one of the main timeline..these seem to be very robust.eg..

function jumpToScene(){

on the last frame of your clip..call it..




Accepted Solution

rexmor earned 800 total points
ID: 8132815
here's what I did.
//script inside movieClip and put it on a certain frame.

tellTarget (_root) {
     gotoAndPlay ("page2");

I don't know why? if I use the script below its not working.
//_root.gotoAndPlay ("page2");    



Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses
Course of the Month14 days, 1 hour left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question