# Loading problem

**URL:** <https://forum.kirupa.com/t/loading-problem/38338>\
**Category:** Uncategorized\
**Created:** [December 21, 2003, 2:22pm UTC](https://forum.kirupa.com/t/loading-problem/38338 "2003-12-21T14:22:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Floppy](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@Floppy](https://forum.kirupa.com/u/Floppy)\
**Post date:** [December 21, 2003, 2:22pm UTC](https://forum.kirupa.com/t/loading-problem/38338/1 "2003-12-21T14:22:27Z")

</div>

i am trying to load an image (or swf) in a movie that is itself loaded in a main movie… these are my actions for loading the secondary movie in the main one

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 2:24pm UTC](https://forum.kirupa.com/t/loading-problem/38338/2 "2003-12-21T14:24:22Z")

</div>

and these are the actions for loading a .jpg in the secondary movie…  
it works fine if i open the movie directly, but if i launch it from the main movie, when i clikc the button, the movie just dissapears

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 2:29pm UTC](https://forum.kirupa.com/t/loading-problem/38338/3 "2003-12-21T14:29:37Z")

</div>

\_root refers to the main timeline of the movie you’re loading it into.  
Therefore doesn’t work anymore.

```auto
btn2.onPress = function() {
    this.createEmptyMovieClip("container", 1);
    loadMovie("i_see.swf", container);
};

```

Next time copy and paste the AS in your thread, is easier for people to work with.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 4:20pm UTC](https://forum.kirupa.com/t/loading-problem/38338/4 "2003-12-21T16:20:18Z")

</div>

maybe i should explain this a little bit better… so, i have my main file, main.swf… there is a menu in the left, with 3 buttons… if i click the 2nd one (b2), i\_see.swf is loaded in the right side of the main movie (it doesn’t cover the entire space and must not replace the main movie, as it happens if i use your script)… going further now… i\_see.swf is actually my portofolio section… there are thumbnails… if i click one of them, the larger image must be loaded… the loaders work separately, but if i load i\_see.swf in main.swf, then the image doesn’t load in i\_see.swf (which simply dissapears)…  
i tried about all paths possible… both loaders with root, both with this, both with nothing and any other combination… it just doesn’t work

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 5:13pm UTC](https://forum.kirupa.com/t/loading-problem/38338/5 "2003-12-21T17:13:54Z")

</div>

Did you try  
[AS]b4.onPress = function() {  
\_parent.createEmptyMovieClip(“container2”, 2);  
\_parent.container2.loadMovie(“munte.jpg”);  
\_parent.container2.\_x = \_parent.container2.\_y=100;  
};  
[/AS]

scotty(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 6:13pm UTC](https://forum.kirupa.com/t/loading-problem/38338/6 "2003-12-21T18:13:21Z")

</div>

yupiiiii… it works… thanks scotty…  
one problem less

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 21, 2003, 6:25pm UTC](https://forum.kirupa.com/t/loading-problem/38338/7 "2003-12-21T18:25:45Z")

</div>

You"re welcome;)
