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


Comments

25 Responses to “Load & Unload Multiple External SWF files Tutorial in Flash ActionScript 3.0”

  1. polanesedotcom on January 4th, 2010 2:41 pm

    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.

  2. TamaraMakeupArtistry on January 20th, 2010 10:39 pm

    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…

  3. TamaraMakeupArtistry on January 20th, 2010 10:42 pm

    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!

  4. jods133 on January 22nd, 2010 4:12 pm

    Is there anyway to load the movie to a specific frame on the timeline?
    Thanks!!

  5. miljkod on January 28th, 2010 7:30 am

    Thanks, very Useful

  6. socal90210 on January 31st, 2010 7:18 pm

    How would you unload all of the swf?

  7. timwitzenman on February 9th, 2010 11:09 pm

    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

  8. rebelsoul on February 10th, 2010 12:49 pm

    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.

  9. axn5ify on February 10th, 2010 1:27 pm

    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

  10. DSupleX on February 12th, 2010 4:30 pm

    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?

  11. philiasso on February 17th, 2010 10:04 am

    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 :)

  12. philiasso on February 18th, 2010 6:28 am

    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest(“swfs/logo.swf”);

    Try this, should work :)

  13. corelgott on March 10th, 2010 8:03 am

    i want to unload the preloader-animation when the external file is loaded. how can i do this?

  14. computerfusselchen on March 18th, 2010 12:22 pm

    I just watched the whole video to find out thats its not about FLIES but about FILES… now im disappointed :D

  15. HISTORIADORchannel on March 20th, 2010 4:28 pm

    ¿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

  16. ChrisCDXX on March 31st, 2010 1:03 pm

    cool, this worked for me, THANK YOU!

  17. lovekisses on April 1st, 2010 12:25 am

    hey there ,,

    how can i download this tuitorial?

  18. NoslenSotnas on April 1st, 2010 9:25 pm

    THANK YOUUUUU!!!
    You are a GREAT teacher!!

  19. Darksteel85 on April 6th, 2010 2:58 pm

    Thanks very much for the tutorial, it was really helpful for making my site =D

  20. demecatio on April 9th, 2010 9:23 am

    thank you very much
    you saved may day.

  21. wrdeboise on April 22nd, 2010 10:10 am

    my loaded swf become distorted. What gives? I’m using an xml doc to load them. Any help would be greatly appreciated

  22. Armeniansforlife on April 27th, 2010 8:13 pm

    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

  23. whateveritstake on April 28th, 2010 9:25 pm

    mUCHAS gRACIAS!!!! THANKS SO MUCH FROM MEXICO, YOU JUST TAKE ME OUT A HARD TIME WITH YOUR TUTORIAL. THANKS AGAIN :)

  24. monkeywrench1985 on April 29th, 2010 6:04 am

    I’ve been pulling my hair out for days trying to get something like this working! You’re my hero!

  25. sensation003 on April 30th, 2010 9:13 am

    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

Powered by Yahoo! Answers