# attachMovie with jpeg from library CS4

**URL:** <https://forum.kirupa.com/t/attachmovie-with-jpeg-from-library-cs4/309717>\
**Category:** flash\
**Created:** [May 22, 2010, 8:23am UTC](https://forum.kirupa.com/t/attachmovie-with-jpeg-from-library-cs4/309717 "2010-05-22T08:23:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boyiscola](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@boyiscola](https://forum.kirupa.com/u/boyiscola)\
**Post date:** [May 22, 2010, 8:23am UTC](https://forum.kirupa.com/t/attachmovie-with-jpeg-from-library-cs4/309717/1 "2010-05-22T08:23:08Z")

</div>

Has attachMovie changed behaviour in the last 10 years?

I’m running the following code:

```auto
_root.createEmptyMovieClip("holder", 1);
_root.holder.attachMovie('p1','image_1',2);
trace(_root.holder.image_1._width);

```

Trace outputs 0 and no picture is displayed.

p1 is a jpeg placed in the library with the identifier p1 and ‘Export for as’ and ‘Export in 1st frame’ are checked.

If I place the jpeg in a symbol/mc and call it with attachMovie, the picture is displayed.

What’s going on?
