Skip to main content
September 10, 2008
Question

.as equivelant to linkage in library items

  • September 10, 2008
  • 1 reply
  • 282 views
hi, right now i have some items in my library that use a base class using the linkage menu item by right clicking on the item in the library.

i want to dynamically populate the movie clips instead of them being already in the library. I know how to create/populate the movieclips by using the loader class, but i am not sure how i assign the base class to each movieclip i create in my .as file

thanks for any help
This topic has been closed for replies.

1 reply

Inspiring
September 10, 2008
Well, I don't think you have to. If you create an asset with a base class - let's say - Test and it extends MovieClip, the type of the asset will be Test but it's also a MovieClip.
So, when loading the asset, you should be able to cast the content to either Test or to MovieClip.