-
Senior Member
Path problem?
I have an external SWF that loads perfect... until I place the parent SWF inside another SWF. I think my problem is with pathing, but can't seem to nail it down.
STEP 1 - I have a MC with an instance name of "songbox" sitting on my main timeline. Within this MC I have an empty MC named "songmc" that I use for loading external SWF's. I am using this code on a button:
on (release) {
_root.songbox.songmc.loadMovie("song1.swf");
}
The button sits on a graphic that tweens within the MC. The MC "songbox" sits on my main timeline.
Everything discussed so far sits within an SWF called "top10". When tested, the external SWF (song1.swf) loads as wanted and plays perfectly.
STEP 2 - Now here's the challenge. I have the SWF "top10" loading as an external SWF in my main movie using this code on a button:
on (release) {
gotoAndStop("one");
_root.songlist.loadMovie("top10.swf");
}
The external SWF "top10.swf" loads perfect. HOWEVER... the button mentioned in STEP 1 above, which when clicked should load "song1.swf", doesn't load the movie as expected.
I've tried placing an empty MC named "songmc" and changing the code accordingly, but I'm still having problems.
Any thoughts that can steer me in the right direction?
Thanks
-
As far as I can understand your construction, it should be like this:
on(release){
_root.songlist.songbox.songmc.loadMovie("song1.swf ");
}
-
Senior Member
yep....that took care of it! Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|