PDA

View Full Version : Load Movie Mishap


yurimon00
09-14-2005, 01:16 AM
on my flash webpage. I made links pointed to a target location to load swf files when clicked on the links.

on (release) {
_root.mload.loadMovie("id.swf");
}

My problem is the SWF files have action script in them. However the animation works when I load the files in but the action script doesn't. Is there a special way to load fully functional swf into a swf file.
Thanks your help.

Cota
09-14-2005, 02:53 AM
Check the paths in your external swf. if you have any _root paths, they are no longer the root because they are being loaded into a master SWF.

Rossman
09-14-2005, 03:01 AM
If _root references are the problem (in the external SWF), you may be able to use lockroot, no?

yurimon00
09-14-2005, 12:45 PM
Is there anything about levels in loading a swf file. that will help recodnize the all inner swf functions?

Cota
09-14-2005, 07:53 PM
If the functions on the loaded SWF are referencing levels, you will have a similar problem.

Rossman
09-14-2005, 08:44 PM
If you post the FLA for the movie you are trying to load in, we may be able to better assist you.

Cheers!

oldnewbie
09-15-2005, 02:05 AM
If you load your movies on another level (loadMovieNum rather than loadMovie...), you usually don't need to make script changes unless specificly targeting the main movie's timeline... Otherwise you'll need to use relative paths (rather than using _root...) using this and/or 1 or more _parent's, or use _lockroot if you're on MX2004 only...

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001522.html

yurimon00
09-15-2005, 05:32 PM
Here are my attached files as a ruff. index.swf is the main file. as you will see the id.swf works by itself. Thanks for your help. I'm reviewing documents. Also trying to see if there is a better approach to this.