Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 29. ActionScript and the Flash A... > Instantiating Flash Authoring Symbol...

29.10. Instantiating Flash Authoring Symbols via ActionScript

In the earlier section "Section 29.6," we learned that instances of a symbol can be created manually in the Flash authoring tool by dragging the symbol's name from the Library to the Stage of a timeline. Instances of symbols that are exported for ActionScript can also be created directly through code, using the standard new operator.

For example, earlier, we linked the star symbol to the Star class. To create an instance of the star symbol through code, we use the following expression:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial