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.
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"); }
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
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"); } }
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
Don't see what you're looking for? Try a search.
|