On Thu, 12 Aug 2004 22:11:44 GMT, Justin Koivisto <spamkoivi.com>
If you want to bring a XML file into Flash to work on data in it you>I'm hoping that someone here can get me off in the right direction with
>this... Flash MX (not 2004)
>I am supplied an XML file with the following data format (via URL):
><?xml version="1.0" encoding="iso-8859-1"?>
> <name>Test Data Point</name>
> <description>A string - no more than 255 chras</description>
> <contents>A long string, possibly pages worth of text</contents>
>In the FLA file, there is a button object named "map_point" in the
>library. What I would like to do is load the XML data for each point,
>create a new instance of map_point and change it's _x and _y so it is at
>(coord_x,coord_y). (...after that is accomplished, I will be looking
>into setting other properties of the instance, but positioning is top
>I've found a couple posts that deal with getting the data into an array
>or the like after reading it, but I don't think I need to bother with
>that since all I want to do is modify an instance of an object...
have to create a new XML object, then p it. Otherwise Flash is
blind to the data. XM 2004 has many XML functions you can use to
search a XML doent by nodes, etc.. How many are in MX I don't know.
Without creating the new XML object and parsing it (walking down the
XML tree) to get the data the external file has in it, you're not
going to get anywhere. While you don't always have to build an Array,
it usually makes sense if you do. Its much easier to work with
especially if the XML file is sizeable.
XML and Flash is a hot topic right now. Here'a couple links to get you
In addition you can use server side scripting like CGI, Perl, PHP
depending on how complex things get.