PDA

View Full Version : loading movies that contain dyn content


kurosevic
11-29-2006, 01:31 AM
Hey everyone,

I am using a main .fla as a container for all of my other .swf's and timeline purposes and one of the .swf's i'm loading in is a news page that reads its info from an external xml file.

like this:
MAIN FLA
NEWS.swf
news.xml

when i load it, the news.swf loads in properly, however, the xml data doesn't load. the target text boxes just say "undefined".

whats the problem???

anonymous
11-29-2006, 06:20 AM
Most likely your pathing...

Do you have references to _root in NEWS.swf? And are you loading it in a container clip of your MAIN.swf?

If so, try adding the following on the first frame of your NEWS.fla as the first actionscript line...

this._lockroot = true;

kurosevic
11-29-2006, 06:08 PM
wow!

worked like a charm.

whats the story on that code?

was it designed for that exact problem? or is there some other use for it?

anonymous
11-29-2006, 10:04 PM
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001522.html

Yes, it was created for that purpose.

Ÿou're welcome. ;)

This post, my 800th, is dedicated to Assertnfailure...

http://www.actionscript.org/forums/showpost.php3?p=556545&postcount=3