immotaylor
09-02-2007, 05:21 AM
I'm in a jam and I'm in over my head. I need an example of a simple actionscript that can read/load an xml file, which has the names of four people in it, and create a draggable movieclip of each person's name.
In other words, I have an xml file that looks something like this:
<friends>
<name>Fred</name>
<name>Aris</name>
<name>Jane</name>
<name>Matt</name>
</friends>
and I want to be able to have Flash read that xml file and create four movieclips so that the four names appear somewhere on the stage and I can click on Fred and drag it from one part of the stage to another, and then click on Aris and drag it to some other part of the stage, etc.
Any version of actionscript will be fine for me. I have Flash CS3 and, please pardon my ignorance, I'm assuming that actionscript 2.0, or MX, etc., will work fine in CS3.
I apologize if any of this is unclear and I sincerely appreciate any help I can get.
Thank you!
- immotaylor
In other words, I have an xml file that looks something like this:
<friends>
<name>Fred</name>
<name>Aris</name>
<name>Jane</name>
<name>Matt</name>
</friends>
and I want to be able to have Flash read that xml file and create four movieclips so that the four names appear somewhere on the stage and I can click on Fred and drag it from one part of the stage to another, and then click on Aris and drag it to some other part of the stage, etc.
Any version of actionscript will be fine for me. I have Flash CS3 and, please pardon my ignorance, I'm assuming that actionscript 2.0, or MX, etc., will work fine in CS3.
I apologize if any of this is unclear and I sincerely appreciate any help I can get.
Thank you!
- immotaylor