PDA

View Full Version : load movie


ssjogus
03-11-2003, 07:41 AM
hi!

i have created 2 flash files: bg.swf and grBall.swf

Then in grBall.swf there is one movie clip: mvGr1

---------------------

In a file bg.swf I load the movie grBall.swf defining it' level and all the necessary things

----------------------

In a file bg.swf I have buttons and through that button i control movie clip : mvGr1

_level1.greenBg.gotoAndStop( _level1.greenBg._currentframe+parseInt(points))

----------------------------------------

PROBLEM:

but what I want to do is, when this movie clip "mvGr1 " ends, some move clip from the file bg.swf file should start playing. bg.swf is the file where i have loaded all the files.

please tell me how to do that?

shruti.

CyanBlue
03-11-2003, 08:22 AM
Howdy...

Put this code at the last frame of your mvGr1 movieclip...
_root.yourMCName.play();
or
_root.yourMCName.gotoAndPlay(2); // put stop() function in frame 1 for this...

ssjogus
03-11-2003, 09:00 AM
no, it' not working.

the problem what i see is:

when i say _root of a movie clip "mvGr1". it must be coming to it' stage , but still in a same file i.e.
_root.yourMCName.play();

in a movie clip "mvGr1" the _root is it "grBall.swf". but how to make one more step backward, like it should make a movie clip play, which is on a stage of a different flash file i.e. bg.swf

shruti.

CyanBlue
03-11-2003, 09:31 AM
Well... if you say _root from the loaded Flash movie, it refers to its parent movie... You could try any of these...
_parent.yourMCName.play();
this._parent.yourMCName.play();
_level0.yourMCName.play(); // I doubt this will work though...

ssjogus
03-11-2003, 10:16 AM
hey thanks,

it' working with

_level0.yourMCName.play();

thank you once again.

shruti.