# Switching between loadMovie and attachMovie

**URL:** <https://forum.kirupa.com/t/switching-between-loadmovie-and-attachmovie/197326>\
**Category:** Uncategorized\
**Created:** [August 15, 2006, 5:37pm UTC](https://forum.kirupa.com/t/switching-between-loadmovie-and-attachmovie/197326 "2006-08-15T17:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![horizens](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/horizens/32/2714_2.png) [@horizens](https://forum.kirupa.com/u/horizens)\
**Post date:** [August 15, 2006, 5:37pm UTC](https://forum.kirupa.com/t/switching-between-loadmovie-and-attachmovie/197326/1 "2006-08-15T17:37:14Z")

</div>

having some trouble with a holder mc that loading content either by attachMovie or loadMovie depending on a conditional. it’s working intermittently though. this is all within a for loop loading an xml file. if sizeName == half and then the next item is sizeName == half, the content doesn’t load. one more click and it loads though. or it works if i go from a sizeName == full to a sizeName == half.

thanks!

```auto
        curr_item.onRelease = function()
        {
            if (this.sizeName == "half")
            {
                holder_mc.createEmptyMovieClip("holder2", 1);
                holder_mc.holder2.attachMovie("content", "content_mc", 1);
                holder_mc.holder2.content_mc.contentImage_mc.loadMovie(this.image);
                holder_mc.holder2.content_mc.contentTitle_txt.htmlText = this.name;
                holder_mc.holder2.content_mc.contentDesc_txt.htmlText = this.desc;
            }
            if (this.sizeName == "full")
            {
                holder_mc.createEmptyMovieClip("holder2", 1);
                holder_mc.holder2.loadMovie(this.image);
            }
        };

```
