Contents
How is the urlloader class used in Adobe ActionScript?
Use the URLLoader class to load text or binary data. The Loader class overrides the following methods that it inherits, because a Loader object can only have one child display object—the display object that it loads.
Can a SWF file be loaded with Adobe ActionScript?
Prior to AIR 3.6, only SWF files that do not contain ActionScript bytecode can be loaded, regardless of whether they’re loaded from the application package or over a network. As an alternative to using an external SWF file with ActionScript, create a SWC library and link it in to your main SWF.
How to remove a loader object in AS3?
Calling the following methods throws an exception: addChild (), addChildAt (), removeChild () , removeChildAt (), and setChildIndex (). To remove a loaded display object, you must remove the Loader object from its parent DisplayObjectContainer child array.
Can you use urlrequest in Adobe AIR?
In AIR, you can set additional properties of the URLRequest class, which are only available to AIR content running in the application security sandbox. Content in the application sandbox can also define URLs using new URL schemes (in addition to standard schemes like file and http ).
When to use Adobe Flash Player loader class?
When you use the Loader class, consider the Flash Player and Adobe AIR security model: You can load content from any accessible source. Loading is not allowed if the calling SWF file is in a network sandbox and the file to be loaded is local.
How to cross script with Adobe ActionScript 3.0?
If the loaded content is a SWF file written with ActionScript 3.0, it cannot be cross-scripted by a SWF file in another security sandbox unless that cross-scripting arrangement was approved through a call to the System.allowDomain () or the System.allowInsecureDomain () method in the loaded content file.