Link to home
Start Free TrialLog in
Avatar of Jonathan Gagliardi
Jonathan GagliardiFlag for United States of America

asked on

Action in movie to move to a frame in the main scene?

I'm having a problem with trying to get the following statement to work.  This action is attached to the button in a movie, which is inside another movie.  The first frame in the main scene is stopped.  So the navigation movie appears and when you hover over a word (navigation button) it starts the second level movie.  In the second level movie if the person clicks on one of those buttons it will advance the main scene to the approperiate level which is the code I have pasted to here.

on (press) {
    gotoAndPlay ("Scene 1", 5);
}

When the button is pressed the webpage that it is suppose to open comes up in the lower frame window, but doesn't advance to the next part of the flash movie's main scene.  Any ideas what I'm doing wrong?

Jon....
Avatar of rootdir
rootdir

You are not providing proper level of movie

try this code

on(release) {
// name of target movie it could be parent movie
tellTarget("ball") {
     gotoAndPlay("Scene 1", 5);
}
}


or
on(release) {
   //_root is main parent movie
  _root.gotoAndPlay("Scene 1", 5);
}

If you still have any problem send me your fla file to rotdir@hotmail.com I will take a look

Cheers
RootDir
ASKER CERTIFIED SOLUTION
Avatar of rootdir
rootdir

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jonathan Gagliardi

ASKER

Thanks a lot for the help.