Load & Unload Multiple External SWF files Tutorial in Flash ActionScript 3.0
Learn Adam’s simple load and unload method for external swf files, jpgs, or whatever. Free Flash Actionscript 3.0 video tutorial and source file. Source Files – www.developphp.com
May 3, 2010 | Filed Under Flash Tutorials
Comments
25 Responses to “Load & Unload Multiple External SWF files Tutorial in Flash ActionScript 3.0”
Powered by Yahoo! Answers
Nice and and easy tutorial but when you imported the loader.gif file into library it was a .gif but in the library it was a movie clip how did it turn it into a movie clip? Thank you.
Hi, did you ever find a solution? I’m using AS2 in Flash MX and I get the same URLRequest error. This is a great tutorial, but I need it to work in AS2. Thanks…
Does anyone know how to code this for AS2? I’m using Flash MX and I get an error for the line
“Var defaultSWF:UrlRequest”. I’ve been working on this for weeks now. Can anyone advise please??
Many thanks!
Is there anyway to load the movie to a specific frame on the timeline?
Thanks!!
Thanks, very Useful
How would you unload all of the swf?
This was a great tutorial! Thank you. I am trying to use the code you gave here, but instead of un/loading the swfs off of buttons, I want to un/load each one automatically as each one ends. In AS2 you can use the “if(currentframe==totalframes)” code, but I cannot figure out how to use this “frame count” functionality in AS3. Can you please help? If you could use the same code you used, but just have the swfs play one after another and then loop back to the first after the 4th swf is done. Thx
This tutorial is awesome thank you so much for it, it’s been extremely helpful.
I have one question.
You determine the X and Y postion of the swf when they import, but is there also anyway to specify which layer the swf imports to?
Can anyone help me?
Thanks a lot.
Thanks for the gr8 tutorial…..
there are two problems
var loader:Loader=newLoader();
var defaultSWF:URLRequest=new URLRequest(“swfs/logo.swf”);
many times i have written your code but it’s not working. allways shows errors…
var loader:Loader=newLoader();
act. i need bugs free code. which will work properly
Great tutorial. Now, what if the external swf covers the entire screen? This works when the buttons are always visible. I need something like a “return” button (inside that same external swf) that unloads the current swf displayed. any ideas?
Hello :) Great tutorial ! All Your tut’s are great!
I have 1 question, how to import swf’s with some tween on load & unload ?…
I try put to the code:
import fl.transitions.*;
import fl.transitions.easing.*;
var TweenExternalSWF:Tween=new Tween(loader,”y”,Strong.easeInOut,loader.y,50,1,true);
that is ok, but it’s work only on load… how should I write this code for load&unload tweening?
Plz help :)
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest(“swfs/logo.swf”);
Try this, should work :)
i want to unload the preloader-animation when the external file is loaded. how can i do this?
I just watched the whole video to find out thats its not about FLIES but about FILES… now im disappointed :D
¿Can I save a copy of the SWF whit the new data loaded to not charge the information (other SWFs) again the next time I’ll open the main?
Thanks for your help, very useful tutorial
cool, this worked for me, THANK YOU!
hey there ,,
how can i download this tuitorial?
THANK YOUUUUU!!!
You are a GREAT teacher!!
Thanks very much for the tutorial, it was really helpful for making my site =D
thank you very much
you saved may day.
my loaded swf become distorted. What gives? I’m using an xml doc to load them. Any help would be greatly appreciated
Your website really helps me alot with my flash websites that i have been creating for awhile now and i just finished following one yr tutorials, “load and unload external swf file” in as3 and i have completed a flash site and i want to add video on one of the swf files, i already now how but when when i click on a button to go to another page the video is still playing in the background and do i unload that page and have the video stop too? Please help me out
Thanks
mUCHAS gRACIAS!!!! THANKS SO MUCH FROM MEXICO, YOU JUST TAKE ME OUT A HARD TIME WITH YOUR TUTORIAL. THANKS AGAIN :)
I’ve been pulling my hair out for days trying to get something like this working! You’re my hero!
Somebody know how to get the loader to the far background of your flash document?
some people say i have to use depth but never worked with it can somebody place a code for this tutorial how to get it under all the other layers.
greetzzz