Publishers of technology books, eBooks, and videos for creative people

Home > Articles > Web Design & Development > ActionScript

  • Print
  • + Share This
From the author of

Dynamic library items

Problem: Movie clips from the library can no longer be added using the attachMovie method.

Solution: The new display list architecture is like a DOM-based architecture in which you add and remove children from a list of items.

Code: The ActionScript 3 addChild method replaces the attachMovie method from ActionScript 2:

addChild(libraryMovieClipName);
  • + Share This
  • 🔖 Save To Your Account