# Attach a library item to the stage with AS2

**URL:** <https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284>\
**Category:** flash\
**Created:** [May 14, 2008, 5:19am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284 "2008-05-14T05:19:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [May 14, 2008, 5:19am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284/1 "2008-05-14T05:19:40Z")

</div>

Hey all,

Long time since i’ve done this and i’m a little rusty.  
How do I attach a library item to the Stage using AS2??

[LEFT][AS]  
Stage.attachMovie(“myLogo”, “myLogo”, 1);  
[/AS]  
[/LEFT]

Does not seem to work??

Thanks in advance!  
George

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [May 14, 2008, 9:08am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284/2 "2008-05-14T09:08:09Z")

</div>

\_root.attachMovie(bla bla bla);

or

\_root.my\_mc.attachMovie(bla bla bla);

😉

---

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [May 14, 2008, 9:28am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284/3 "2008-05-14T09:28:28Z")

</div>

yep, just not Stage.

this.attachMovie(“thing”, “thing1”, 1); is also fine, and attaches it wherever you place the code.

---

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [May 14, 2008, 9:42am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284/4 "2008-05-14T09:42:20Z")

</div>

as long as you dont forget to set the linkage name!

---

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [May 15, 2008, 3:41am UTC](https://forum.kirupa.com/t/attach-a-library-item-to-the-stage-with-as2/260284/5 "2008-05-15T03:41:29Z")

</div>

Yeh i got it working fine now - thanks heaps all!

Haha needed that touchup class!
