# Loading movies problems

**URL:** <https://forum.kirupa.com/t/loading-movies-problems/11978>\
**Category:** Uncategorized\
**Created:** [January 24, 2003, 9:01pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978 "2003-01-24T21:01:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whodatman](https://avatars.discourse-cdn.com/v4/letter/w/c68b51/32.png) [@whodatman](https://forum.kirupa.com/u/whodatman)\
**Post date:** [January 24, 2003, 9:01pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/1 "2003-01-24T21:01:52Z")

</div>

ok…being new to Flash…I’m having trouble with load movies.

Let’s see if I can explain my problem…

I have a Movie…call it Main.swf  
When you click on the “portfolio” button, it loads a seperate movie…“portfolio.swf”…all this works…however…within the porfolio.swf file…it also has buttons that load seperate movies…  
The problem is…if I run portfolio.swf by itself, the movies load just fine.  
But, if i run main.swf, and click to load portfolio.swf…once loaded, it won’t load the movies in it…

Am I making sense?

Any help would be great.

---

<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:** [January 24, 2003, 10:24pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/2 "2003-01-24T22:24:02Z")

</div>

That’s a common problem when you’re new to loading movies, what actions do you on the buttons in your portfolio.swf?

---

<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:** [January 24, 2003, 10:33pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/3 "2003-01-24T22:33:27Z")

</div>

thanks for the reply…

In my “portfolio.swf” movie…I have buttons (in a movie clip in the library)…the actions on these buttons are like the following:

on (release) {  
loadMovie(“test2.swf”, “\_root.bucket”);  
}

“bucket” is the instance name I’ve given to a blank movie clip on Scene 1.  
this works fine by itself…just running portfolio.swf.  
but not if portfolio is loaded the same way into main.swf.

make sense?

Thanks

---

<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:** [January 24, 2003, 11:16pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/4 "2003-01-24T23:16:35Z")

</div>

Try this, replace \_root with \_parent so it looks like this:

```php
on (release) {
loadMovie("test2.swf", "_parent.bucket");
}

```

---

<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:** [January 25, 2003, 1:46am UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/5 "2003-01-25T01:46:19Z")

</div>

Thanks for the help…

I’ll give it a try.

---

<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:** [January 29, 2003, 8:35pm UTC](https://forum.kirupa.com/t/loading-movies-problems/11978/6 "2003-01-29T20:35:20Z")

</div>

i had the same prob. you have to use global variables to do it.

\_global.myAppMain = this; put that on your main frame then put  
myAppMain instead of root on your files being loaded. it should work then.
