# \[AS1\] .attachMovie method to load images

**URL:** <https://forum.kirupa.com/t/as1-attachmovie-method-to-load-images/241239>\
**Category:** flash\
**Created:** [October 11, 2007, 10:50am UTC](https://forum.kirupa.com/t/as1-attachmovie-method-to-load-images/241239 "2007-10-11T10:50:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blue\_chi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blue_chi/32/62_2.png) [@blue\_chi](https://forum.kirupa.com/u/blue_chi)\
**Post date:** [October 11, 2007, 10:50am UTC](https://forum.kirupa.com/t/as1-attachmovie-method-to-load-images/241239/1 "2007-10-11T10:50:50Z")

</div>

I am creating a gallery that loads the images from the library. The only method that I managed to do this is by creating movie clips that contain each of those images and then calling those movie clips from the library using the .attachMovie method because **this method only works for movie clips and not instances of other library items such as actual images**.

Is there anyway in ActionScript to create an instance of an image asset in the library?
