what is the best method for loading external XML (with inherent HTML) content
into Flash and into the TextArea component?
here is the requirement:
i have an image loader and a TextArea together on the screen. a "story" is
loaded which will present a series of images (in the image loading) associated
with a corresponding text (in the TextArea). a "story" has multiple image/text
sections that are navigatied through with FRWD/BACK buttons. any given section
can also have multiple sub-sections or "frames".
here is a diagram of the flow (in this case there would be 5 click throughs: 5
text/image sequences, but all contained only within 4 sections):
http://jalaka.com/lab/ia/story_nav.jpg below is my proposed sample XML structure. i want Flash to recognize how many
sections and frames within sections there are in each story XML document - in
order to generate a corresponding navigation structure (a tab for each
section). HTML content will be immediate availble to loadinto TextArea as user
move forward in sequence with nav. and images references can also be preloaded
into available MC containers to be swapped into place as user navigates forward
in sequence. also need to read and store attributes for each node in the XML to
come up in MCs in sequence. and must also be able to parse XML in a way to
place simple HTML formatted content (within XML) into the TextArea.
would Arrays be used?
<story title = "Story Title">
<section num = "1" title = "Section One Title" >
<frame image = "1.jpg" caption = "caption text
here">[B]Content[/B]<br><br>content content content</frame>
</section>
<section num = "2" title = "Section Two Title" >
<frame image = "1.jpg" caption = "caption text
here">[B]Content[/B]<br><br>content content content</frame>
<frame image = "2.jpg" caption = "caption text
here">[B]Content[/B]<br><br>content content content</frame>
</section>
</story>