Skip to main content
Participant
August 1, 2008
Question

Help Loading Image with XML

  • August 1, 2008
  • 2 replies
  • 340 views
I am working on trying to get use an XML file to load information that is called upon. So far I was able to load the XML file and call out text and display in flash. I am having an issue getting actionscripts to grab the URL string from the XML of the image i want to use. I am having trouble with my imageLoader finding the URL. Maybe Im parsing it wrong? anyway below is the XML and attached is my AS3.

<?xml version="1.0" encoding="ISO-8859-1"?>


<sherwoodGuide>
<loc1>
<bld>Reception Area </bld>
<desc>Information for loc 1 goes here</desc>
<image pic_url="whatever1.jpg" />
</loc1>
</sherwoodGuide>
Thanks for the help.
This topic has been closed for replies.

2 replies

Inspiring
August 1, 2008
You're welcome man :-)
Inspiring
August 1, 2008
From the code you post here, it would seem that you first assign path to the URLRequest and after that load the xml to get the path.
ervarnerAuthor
Participant
August 1, 2008
That makes sense and it worked. Thank You very much.