
You can load SWF files and
images with the Loader class.
The Loader class works in a
similar way to the UILoader
component, but it does not
require a component — only
ActionScript.
LOAD THE SWF
1 Click a keyframe on the Timeline.
2 Click Window.
3 Click Actions.
The Actions panel opens.
You can also press
(+).
Option
Load a SWF File Dynamically with ActionScript
Load a SWF File Dynamically
with ActionScript
296
4 Type var mySwfPath:URLRequest =
new URLRequest(“?”); replacing ? with
the URL, or file path, of the SWF file you
want to load.
5 Create an instance of the Loader class by
typing var swfLoader:Loader = new
Loader();.
6 Type this.addChild(swfLoader); ...