all groups > flash actionscript > may 2005 >
You're in the

flash actionscript

group:

Load movie help script needed, desperate!!


Re: Load movie help script needed, desperate!! kglad
5/30/2005 12:00:00 AM
flash actionscript:
sure. you just need two targets and two loadMovie() statements.

if you want to coordinate their play, you'll need to use preloader code to
keep them both hidden and stopped until they've both completed loading.
Re: Load movie help script needed, desperate!! shush
5/30/2005 12:00:00 AM
Re: Load movie help script needed, desperate!! XmenFlash
5/30/2005 12:00:00 AM
Re: Load movie help script needed, desperate!! kglad
5/30/2005 12:00:00 AM
yourBtn.onPress=function(){
for(var i=1;i<=2;i++){
rclip=_root.createEmptyMovieClip("target"+i,i);
rclip._y=0;
rclip._x=(i-1)*200;
rclip.loadMovie("yourSwf"+i+".swf");
}
Load movie help script needed, desperate!! shush
5/30/2005 12:22:11 PM
Can i from a click of a button on my menu open and play a swf and play another
swf that plays with it?so u can see both swfs?

basically i have a site at freshlemon.co.uk/paragon/home.html

on the main menu when u click on the products button the page loads and has a
menu on the left when u click projectors them micro portable i hve another swf
playing so these 2 are playing, but i want to get to these 2 pages from the
main menu and the drop down from the products drop down, can this be done?

Really desperate thanx
Re: Load movie help script needed, desperate!! kglad
5/31/2005 12:00:00 AM
that code would be attached to a frame that contains your button. if you want
those swf's to load sequential and not simultaneously, you need to use
preloader code:

yourBtn.onPress=function(){
rclip=_root.createEmptyMovieClip("targetMC",_root.getNextHighestDepth());
rclip.loadMovie("products.swf");
preloadI=setInterval(preloadF,100);
}

function preloadF(){

if(targetMC.getBytesLoaded()>0&&targetMC.getByesLoaded()>=targetMC.getBytesTotal
()){
clearInterval(preloadI);
_root.createEmptyMovieClip("target2MC",_root.getNextHighestDepth());
target2MC.loadMovie("micro.swf");
}
}
Re: Load movie help script needed, desperate!! shush
5/31/2005 8:28:58 AM
Hi thanx for that i know u probably explained it as simple as u can, but would
i place that script on the level where the button sits? also the 2 movie swfs i
want to play are first products.swf then once thats loaded i want micro.swf to
load on top, how can i place this in the script u gave me? thanx
AddThis Social Bookmark Button