PDA

View Full Version : Load and unload movie



puneetbatra
September 7th, 2002, 08:11 AM
My flash movie has two scenes at end of scene 2 i have load another movie using loadmovie. Now I wanna unload the loaded movie and directly go to scene 2 . Is there anyway by which I can directly jump to scne 2 instead of going through scene 1. I am using flash 5 and both moovies have same dimensions.

Please help
Puneet Batra

*********
free your mind

:pirate:

Bezzer
September 7th, 2002, 08:30 AM
um well if ur loading up into a movie clip just use removeMovieClip

puneetbatra
September 7th, 2002, 08:41 AM
bezzer
see both the movies have same dimension. i.e. i cant see movie 1 i can only see movie 2 ..... can movie remove itself .......and waht about going to scene2 directly instead of scene1

puneet

Deril
September 8th, 2002, 03:28 AM
####
Availability
Flash 2.

Usage
gotoAndPlay(scene, frame)

Parameters
scene The scene name to which the playhead is sent.
frame The frame number or label to which the playhead is sent.
####

taken from Reference...




I gues..

puneetbatra
September 8th, 2002, 05:45 AM
this doesnt works......suggest some other method. i have tried this method before posting for help here

Puneet

Deril
September 8th, 2002, 11:40 PM
I gues its becos you are trying to control main movie from loaded one...
its inposible.. I faced that fact too..
I am lookig into this problem...

upuaut
September 9th, 2002, 12:23 AM
_root.gotoAndPlay(frame);

should work fine from a loaded movie. Ignore the scene name it's not necessary.

puneetbatra
September 9th, 2002, 12:33 AM
by using _root.gotoAndPlay(frame), u wont be able to go back to that scene.
i have even tried _level1.gotoAndPlay(frame), but it still doenst work.....
I need to go back to that scene since that scene have all the navigation bar.



:pirate:

Deril
September 9th, 2002, 03:48 PM
it seams that i have same problem . . .


:(

upuaut
September 10th, 2002, 02:02 AM
Is this a Flash 5.0 FLA? if so send it and the swf that get's loaded to me in a zip file to upuaut@centerspin.com.

The method I describe above is sound.. if it's not working then I'll need to take a look at the rest of the production to figure out why it's not working.