Or could be this if your text is in the text node:

var destination:String = "intro";
myClip.gotoAndPlay(destination);
myClip.myTextField.text = myXML.myNode.(@destination).text();


Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)





-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Merrill,
Jason
Sent: Wednesday, August 26, 2009 8:26 AM
To: Flash Coders List
Subject: RE: [Flashcoders] help with frame navigation and xml

You don't need any code inside the clip, I think you're approaching this
the wrong way around.  Why have the XML node based on the frame's label?
You already know it's going to "intro" since you have to tell the
MovieClip to go there. Do something like this instead:

var destination:String = "intro";
myClip.gotoAndPlay(destination);
myClip.myTextField.text = myXML.myNode.(@destination);

Hope that helps,

Jason Merrill 

Bank of  America   Global Learning 
Shared Services Solutions Development 

Monthly meetings on making the most of the Adobe Flash Platform -
presented by bank associates, Adobe engineers, and outside experts in
the borader multimedia community - join the Bank of America Flash
Platform Community  (note: this is for Bank of America employees only)




-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Isaac
Alves
Sent: Wednesday, August 26, 2009 8:17 AM
To: [email protected]
Subject: [Flashcoders] help with frame navigation and xml

Hi,

I'd like to have a function that tells a MovieClip to go to a specific
frame and then in this frame, look for a scpecific tag in an XML file,
based on the frame's label, and then take some text (a  bunch of
actually) that is in the XML node and put it on a TextField.

For example, clicking on a "Next Frame" button it will go to the next
frame (which has a label "intro") of the movieclip and then search
"content.xml" for the tag that contains the attribute name equal to
"intro" and then put the content of the "....@text" node into an empty
TextField that is already positioned in this "intro" frame.

Am I obligated to have the code in this specfic frame?

I'm doing it because if I have too much text within textfields in an
FLA file it becomes incredibly lagged and therefore impossible to
work.

I've tried to use the event ENTER.FRAME to do that but it rendered the
SWF lagged and consomming way too much memory...

Help !! Thanks in advance!!
Isaac
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to