# \[AS 2 Flash CS3\] Load jpg from library into Empty MC

**URL:** https://forum.kirupa.com/t/as-2-flash-cs3-load-jpg-from-library-into-empty-mc/268345
**Category:** flash
**Created:** [August 12, 2008, 8:20pm UTC](https://forum.kirupa.com/t/as-2-flash-cs3-load-jpg-from-library-into-empty-mc/268345 "2008-08-12T20:20:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zantetsuken](https://avatars.discourse-cdn.com/v4/letter/z/ebca7d/32.png) [@zantetsuken](https://forum.kirupa.com/u/zantetsuken)
#### Post date: [August 12, 2008, 8:20pm UTC](https://forum.kirupa.com/t/as-2-flash-cs3-load-jpg-from-library-into-empty-mc/268345/1 "2008-08-12T20:20:22Z")

</div>

I am suddenly feeling really dumb when it comes to actionscript because something I think would be so simple is not really working out for me. I am trying to load a jpg that is in my library to an empty movie clip on the stage when a button is clicked.

Here’s the code I have tried on the button:

```auto
on (release) {
    graph2_mc.temp.attachMovie("RLC01z1","test",10);
}

```

The instance name of my empty movie clip on the stage is graph2\_mc  
The IDName of the bitmap(jpg) in the library is RLC01z1

As far as the .temp before attachMovie I just tried that after it wasn’t working without it. I technically don’t really know what it does. But it didn’t work anyway so I figured what the hay.

Any help would be appreciated. Thanks
