Home » Archive

Articles tagged with: Loader

ActionScript 3.0, Adobe, Flash AS 3 »

[22 Aug 2009 | No Comment | ]

When Actionscript 3.0 was a dream and all Flash developers worked with AS2 the _global property was a smart and fast way to share variables between swf files.
A classic scenario is the following:
1) In the main swf file there is the language selection and users can make their choice selecting the site language
2) This swf probably will have a menu to load different pages, each one with their content and galleries to load.
3) Every loaded page will need to know the selected language value to load the right content (for example …

ActionScript 3.0, Adobe, Flash AS 3 »

[18 Aug 2009 | 5 Comments | ]

Two of the most popular questions when loading SWF files in Flash CSx / AS3 are:

how to call a method in the loaded swf from the Main document class
how to reference at the main document class to call a method from the the loaded swf.

In this post I’ll provide you a quick and easy sample to cover both situations.
This is not the best way to accomplish this task but it’s very easy to understand and use.

So what we’ll do?
1) We’ll load the file Page.swf inside Main.swf clicking on …