# Can i still do this in AS3?

**URL:** <https://forum.kirupa.com/t/can-i-still-do-this-in-as3/240028>\
**Category:** Uncategorized\
**Created:** [September 28, 2007, 12:38pm UTC](https://forum.kirupa.com/t/can-i-still-do-this-in-as3/240028 "2007-09-28T12:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aBnest](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/abnest/32/2177_2.png) [@aBnest](https://forum.kirupa.com/u/aBnest)\
**Post date:** [September 28, 2007, 12:38pm UTC](https://forum.kirupa.com/t/can-i-still-do-this-in-as3/240028/1 "2007-09-28T12:38:51Z")

</div>

With AS2 it was possible to attach a movieClip on the stage using the linkage name from an outside source - xml for example

var linkage:String = “LibraryItem”;  
this.attachMovieClip(linkage, “instance”,depth );

now, how can I do this in AS3 ?  
where the context to add items from library is:

var instance: LibraryItem = new LibaryItem();
