# loadMovie problem

**URL:** <https://forum.kirupa.com/t/loadmovie-problem/218086>\
**Category:** Uncategorized\
**Created:** [March 4, 2007, 11:34pm UTC](https://forum.kirupa.com/t/loadmovie-problem/218086 "2007-03-04T23:34:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjitt](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bjitt](https://forum.kirupa.com/u/bjitt)\
**Post date:** [March 4, 2007, 11:34pm UTC](https://forum.kirupa.com/t/loadmovie-problem/218086/1 "2007-03-04T23:34:55Z")

</div>

Hi,

I have 2 movies – one container that scrolls text which is inputted from an external text file, and one parent movie which loads that container into itself. Right now **the container file isn’t visible at all when testing** but runs properly when running **only** the container file independently with the neccessary variables inputted manually. I figure there is some sort of issue with my controlling file. Please review if you can.

Controlling absolute path: \_level0.pgap.pages.dynamic\_instance  
Container absolute path: \_level0.pgap.pages.dynamic\_instance.myMovie

**Controlling file:**

```auto
var myVariable= "foo";

this.createEmptyMovieClip("myMovie",2);
this.myMovie.loadMovie("scroll_thing.swf");
this.myMovie._x = 205;
this.myMovie._y = 310;

```

**Container file:**

```auto
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function() {

    var myvar = _parent.myVariable; //myVariable = foo
    myMC.html = true;
    myMC.myTextI.htmlText = this[myvar];
    
trace(myvar); //returns foo
    
    myMC.createClassObject(mx.controls.UIScrollBar, "myScrollBar", myMC.getNextHighestDepth());
    myMC.myScrollBar.setScrollTarget(myMC.myTextI);
    myMC.myScrollBar.setSize(16, myMC.myTextI._height);
    myMC.myScrollBar.move(myMC.myTextI._x+myMC.myTextI._width+5, myMC.myTextI._y);
};
myLV.load("myText.txt");

myMC.onEnterFrame = function() {
    myMC._alpha += 10;
    if (myMC._alpha >= 100) {
        myMC._visible = true;
        delete myMC.onEnterFrame;
    }
};

stop();

```

Thanks.
