hello,
- When I place all movie clips on the same main stage,
the xml file can be read perfectly.
BUT not reading properly inside nested movie clip.
Is it possible to read XML object in nested movie clip in the first place? - Is it better to load xml document just once in main timeline,
and then read the XML object from movieclips OR
read the XML document for each movie clip?
Which way is better???
PROBLEM
theres one movie clip on main stage. inside it, there
s another movie clip.
in frame 1 of main timeline,
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest(“samplw.xml”));
xmlLoader.addEventListener(Event.COMPLETE, loadXML);
function loadXML(e:Event):void
{
xmlData = new XML(e.target.data);
}
**inside the movie clips timeline,** var childxmlData:XML = MovieClip(this.root).xmlData; trace(childxmlData + 'inside movie clip!!!'); the nested movie clip is able to read the XML object on main timeline, but it
s unable to read the content properly…
the font size is really small n overflows the textfield…
I really don`t know how to fix this problem…
Please advise!!!