^ Boot Camp 02
the display list
- primary classes
- branch nodes - descendants of DisplayObjectContainer:
Loader, Sprite, MovieClip
addChild(), addChildAt(), removeChild(), removeChildAt()
- leaf nodes - Bitmap, Shape, TextField:
- graphics property points to Graphics class instantiation for use of vector drawing api
Shape, Sprite, MovieClip
embedding assets
events
- descendants of InteractiveObject
addEventListener(), removeEventListener()
- capturing and bubbling
loading assets
- png, jpeg, gif, swf - Loader
- xml, txt, ini - URLLoader
- mp3 - Sound
- listen for events
Event.COMPLETE, IoErrorEvent.IO_ERROR, SecurityErrorEvent.SECURITY_ERROR
performing screen updates
- Event.ENTER_FRAME (bound to frame rate): descendants of DisplayObject<
- Timer (arbitrary, frame rate independent timing)
static linking against SWCs
create a SWC
- FLA with MovieClip symbol in library
- export for actionscript and supply class name
- check 'Export swc' on publish settings, Flash tab
- publish
link and use a SWC
- ensure swc is in library path (compiler.library-path
- instantiate class name bound to symbol
readings