for me i'd parse the entire xml in one go when the swf is loading. In
parsing, save each subsection of the xml data into an array. When the
button needs it, simply access the array.
this is not a stupid question because I've seen similar scenarios in
which the xml was completely reloaded only to target the desired
subsection of the xml. You might consider going to FlashNewbies for
help:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewbie
On Jun 9, 2007, at 10:17 AM, ben deroo wrote:
hi,
small sample:
<ankematheve>
<concept>
<image path="images/a1.jpg" br="413" ho="550" thumbpath=
"thumbnails/a1.jpg" thumbwidth="56" thumbheight="75"></image>
<image path="images/vue.jpg" br="550" ho="309" thumbpath=
"thumbnails/vue.jpg" thumbwidth="56" thumbheight="75"></image>
</concept>
<details>
<image path="images/a1.jpg" br="413" ho="550" thumbpath=
"thumbnails/a1.jpg" thumbwidth="56" thumbheight="75"></image>
<image path="images/a2.jpg" br="550" ho="413" thumbpath=
"thumbnails/a2.jpg" thumbwidth="56" thumbheight="75"></image>
</details>
</ankematheve>
I'd like to be able to load and /or replace sections of this xml file.
meaning:
when I click a button on stage, i'd like thumbnails(that code has
allready
been done) to appear from the <concept> node.
when I click another button on stage, i'd like that content to be
removed
(deleted from the stage, but not from the xml file ofcourse) and be
replaced
by content from the <details> node.
yup, I feel stupid, but that's ok!
Ben
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com