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()
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:
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()
I don't get any error.
Did you change the code ?
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?
yep got argument error #2025
No, I didn't change the code. Any suggestions?
I have no clue...I do not get any error.
Hi Flep,
thanx 4 your work!
I got the "ArgumentError: Error #2025:", too.
Ciao Aydin
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.
Bookmarks