Skip to Content
Teach Yourself Visually™ Flash® CS4 Professional
book

Teach Yourself Visually™ Flash® CS4 Professional

by Keith Butters
February 2009
Beginner
368 pages
10h 30m
English
Visual
Content preview from Teach Yourself Visually™ Flash® CS4 Professional
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
44
33
66
22
55
77
11
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); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Adobe Flash CS4 Professional on Demand

Adobe Flash CS4 Professional on Demand

Steve Perspection, Inc. Johnson

Publisher Resources

ISBN: 9780470344743Purchase book