Skip to main content
June 1, 2007
Question

XML - LoadMovie(image)

  • June 1, 2007
  • 2 replies
  • 169 views
Hi.

I am in the middle of making an xml driven menu. Each button has an image which loads from an external folder and 3 dynamic text fields. The content for the text fields is taken from an external XML file and I would also like the image to be defined in the XML file. The problem I am having is when I use the code attached below I get the following error message; :

'Error opening URL 'file:///C|/Documents%20and%20Settings/barry.gee/Desktop/undefined'

However when I manually enter the image url as commented out in the attached code the image loads fine.


All advice welcome.

Thanks

Barry.
This topic has been closed for replies.

2 replies

Inspiring
June 1, 2007
Well, what do you get when you trace them out?

human.firstChild.childNodes[i-1].childNode[3].nodeValue

You might also try:
human.firstChild.childNodes[i-1].childNode[3].firstChild.nodeValue


--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Inspiring
June 1, 2007
>> here.imageLoader.loadMovie(human.firstChild.childNodes[i-1].childNode[3]);

You are getting a reference to a node here - not the string you want. Try
this:

here.imageLoader.loadMovie(human.firstChild.childNodes[i-1].childNode[3].nodeValue);--Dave -Head Developer http://www.blurredistinction.comAdobe Community Expert http://www.adobe.com/communities/experts/

June 1, 2007
Hi.

Thanks for the reply. However i have already tried that with no luck.

barry.