setting dynamic text from an xml file on enetring the first frame of a movie

sousflai
sousflai used Ask the Experts™
on
I've sucessfully imported xml variables which update the text in a dynamic text field on button pushes. When the users first eneter the movie I want to set the text to a value from the xml. The button presses thereafter change this text. The code I'm using is

captionb.text = xmlData.images.image[0].meta[2];

which I've just put as it is on the first and only frame. If I change the xml to simply "hello" this works so it seems the xml vlaue is the problem although this statement works fine within the function for the buttons. The error message is "TypeError: Error #1010: A term is undefined and has no properties.
      at taxiflash_fla::MainTimeline/frame1()"

any help gratefully received
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2009
Commented:
Post the full source, it seems you may have either referenced things wrongly, or you may have accessed the xml when it have not loaded.

Author

Commented:
the xml hadnt loaded so I put the command into the xml test code

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial