all groups > flash actionscript > march 2008 >
You're in the

flash actionscript

group:

linking mutiple external swf sequentially


linking mutiple external swf sequentially Doug Ibarra
3/17/2004 8:18:36 AM
flash actionscript: I'm a newbie having a heck of a time doing what I thought was simple to do.
I am trying to create an info-mmercial by creating a Flash projector exe that
links 3 external Flash intro's swf's.
I want the swf's loaded sequentially (i.e. one starts after the last one
finishes).
I initially got it working by laying out the main swf into scenes (one for
each external swf I wanted played).
I did something like:
Scene 1:
loadMovie("movie1.swf",1);
and then at xxx frame added
Stop();
gotoAndPlay("movie2");
Scene 2:
loadMovie("movie2.swf",1);
etc.


It worked, but gave me no control of placement and size of movie loaded.
I've attempted to use a movie clip "holder" instance as a target for playing
my movies. It works, but only if I call one movie.
I did the following:
loadMovie("movie1.swf","holder");

Any other action code I have tried to load the subsequent movies have failed.
What must I do to sequentially call the next external swf in the holder
instance?


Thanks,
Doug I.
Miami, Fl






Re: linking mutiple external swf sequentially firelion
3/17/2004 9:22:46 AM
a simple solution is to add a load action on the last frame of each of the exteranl swf so that their call each other
RE: linking mutiple external swf sequentially J
3/26/2008 8:48:31 PM
I did something like this... I had a button that I clicked to load the different movies. The movies resized / moved changed alpha and stuff. I think this might help you:

here's a load movie function
function movieloader (x,y,B, filename)
{
frame_mc.duplicateMovieClip("frame"+counter,100+counter)

eval("frame"+counter)._alpha = 100;
eval("frame"+counter)._x = x + 15 - this._x;
eval("frame"+counter)._y = y + 15 - this._y;
eval("_parent.container" + counter + "_mc")._x = x;
eval("_parent.container" + counter + "_mc")._y = y;
eval("_parent.container" + counter + "_mc")._xscale = B;
eval("_parent.container" + counter + "_mc")._yscale = B;
eval("_parent.container" + counter + "_mc").loadMovie(filename)
//while(eval("_parent.container" + counter + "_mc").getBytesLoaded != eval("_parent.container" + counter + "_mc").getBytesTotal);
//{
// trace("waiting!");
//}


};

then, I changed the position of the movies... by changing the coordinates of the container movie.

good luck

From http://www.developmentnow.com/g/69_2004_3_0_0_338210/linking-mutiple-external-swf-sequentially.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button