FireworksColdFusionDreamweaverFreehandFlashMXHome
Latest New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

Working with Library and Linkage Changes in ActionScript 3.0 [Registration never required for free content]

By: David Stiller on Friday, August 15, 2008
Reader Level: Reader Level

Primary Category: FlashLike its forerunner, ActionScript 3.0 supports the attachment of Library assets at runtime, but the mechanics have changed. While ActionScript 2.0 had the familiar MovieClip.attachMovie() and Sound.attachSound() methods, the only class methods that now contain the word "attach" relate to connecting the SWF file to an external device, such as NetStream.attachCamera(), which lets the user transmit webcam input. Not the same thing at all! So, how can you access the Library at runtime in an AS3 document? The answer is gratifyingly elegant, and even in its simple approach, ActionScript 3.0 gives you more elaborate options than before.

This article, adapted from an excerpt of The ActionScript 3.0 Quick Reference Guide (ISBN: 0596517351), discusses how Library linkage has changed in ActionScript 3.0. This quick answer guide is slated for October, 2008, published by O'Reilly, and is written by Community MX partner David Stiller, as well as Rich Shupe, Jen deHaan, and Darren Richardson.

More ...

Member's Sign In

Remember Me

Retrieve Password

Current Articles
and Tutorials

3569

Most Recent JumpStarts

Newsletter

View the archive

CMX Suite

New every Tuesday!CMX Weekly Cartoon
View the archive

RSS Feed

Syndicate CMX

Our feeds