Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast
Results 1 to 10 of 34

Thread: Loading external swf with no use of AS files

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Loading external swf with no use of AS files

    amazing Flash templates

    I noticed there are many webmasters who have good skills of HTML, CSS and SEO.

    Also, they know the basis of server side languages ( PHP, ASP... ) but when they approach the Actionscript classes (AS files) they still have many gaps and often unfounded "fears".


    In my opinion, the best way to develop with Flash remains the OOP using classes and AS files.

    But I decided to create an example of how to load and unload the external SWF's (therefore very useful to create simple web sites in Flash) without using classes, and with code written in the main Flash timeline ( Actionscript 3.0 ).


    Hope it helps. Enjoy!


    Source files:
    Attached Files

  2. #2
    Junior Member Settled In Enrico333 is on a distinguished road
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Re: Loading external swf with no use of AS files

    I got an error on loading multiple swf files:

    at main_fla::MainTimeline/onButtonDown()
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::Loader/unload()
    at main_fla::MainTimeline/onButtonDown()

  3. #3
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: Loading external swf with no use of AS files

    I don't get any error.
    Did you change the code ?

  4. #4
    Junior Member Settled In faina is on a distinguished road
    Join Date
    Apr 2008
    Posts
    4
    Rep Power
    0

    Re: Loading external swf with no use of AS files

    Useful as always for those, like me, who are approaching AS3.
    One question. If I change the bg color of movies, it doesn't appear in the main swf... Why?

  5. #5
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: Loading external swf with no use of AS files

    Quote Originally Posted by faina View Post
    Useful as always for those, like me, who are approaching AS3.
    One question. If I change the bg color of movies, it doesn't appear in the main swf... Why?
    You should create a background MovieClip with stage dimensions.

  6. #6
    Junior Member Settled In bhatushai is on a distinguished road
    Join Date
    Feb 2008
    Posts
    7
    Rep Power
    0

    Re: Loading external swf with no use of AS files

    yep got argument error #2025

  7. #7
    Junior Member Settled In Enrico333 is on a distinguished road
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Re: Loading external swf with no use of AS files

    No, I didn't change the code. Any suggestions?

  8. #8
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: Loading external swf with no use of AS files

    I have no clue...I do not get any error.

  9. #9
    Junior Member Settled In AYDIN is on a distinguished road
    Join Date
    Jan 2009
    Posts
    4
    Rep Power
    0

    Re: Loading external swf with no use of AS files

    Hi Flep,
    thanx 4 your work!
    I got the "ArgumentError: Error #2025:", too.

    Ciao Aydin

  10. #10
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,460
    Rep Power
    8

    Re: Loading external swf with no use of AS files

    I tried it in all the ways and I do not get errors.
    Give me more details... wehn you get error. Please provide explanation step by step of what you do when you get the error.

+ Reply to Thread
Page 1 of 4
1 2 3 ... LastLast

Similar Threads

  1. preLoader with external files!!!
    By losbenos in forum advanced Actionscript 3.0
    Replies: 10
    Last Post: 01-11-09, 09:21
  2. load External swf files with AS3
    By tuanDuy in forum advanced Actionscript 3.0
    Replies: 2
    Last Post: 12-03-09, 01:08
  3. Loading mulitple external .swf files
    By mrentschler in forum Actionscript 3.0 newbies
    Replies: 1
    Last Post: 09-10-08, 22:24
  4. load External swf files with AS3
    By tuanDuy in forum HELP free utilities
    Replies: 0
    Last Post: 27-05-08, 10:44
  5. Loading external XML files with Flash CS3
    By Flep in forum Tutorials
    Replies: 14
    Last Post: 19-11-07, 15:23

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Optimization by vBSEO