Xml and flash

i need to make a flash file. with a textfield on frame 1 and on frame 20 and on frame 40 and the content for those textfields needs to be read from a xml file.
Textfield 1 is slogan 1 textfield 2 is slogan 2 and textfield 3 is slogan 3
can someone tell me how to do this or maybe even make a quick mockup for me ?

thanks in advance

put up the xml format (or atleast the content for the three text boxes)… so that we can see what the code has to extract.

try looking at the xml examples in the tutorial section…

What i need is very simple to explain.
Its just a flash file size doesn’t matter. with 2 dynamic textfields on frame 1 and the same on frame 20 and again 2 on frame 40. SO only one layer with pure textfields.
on frame 1 should come a title and a quote and on frame 20 a new title and quote and also on frame 40. But i want these textfields to be filled with xml content.
The XML file should be this:


<intro>
   <item>
      <title>title 1</title>
	<quote>
                 Place quote number 1
             </quote>
   </item>
   <item>
      <title>title 2</title>
             <quote>
                Place quote number 2
             </quote>
   </item>
   <item>
      <title>title 3</title>
             <quote>
                Place quote number 3
             </quote>
   </item>
</intro>

You could simply do this

<intro>
<item title=“super title!!” quote=“remember remember the fifth of november”/>
<item title=“super title 2!!” quote=“I’m your father”/>
<item title=“super title 3!!” quote=“You’re the one”/>
</intro>

and then use xmlObject from sephiroth, or parse the xml “by hand” to get that data.

If using the xmlObject calling a data of the xml (after parsing it) is as simply as this:

my_textfield.text = xml_object.intro.item[0].attributes.title //that would be “super title!!”

okay this makes sense but my skills are not so good with xml.
SO basically i place a simple xmlObject code.
And for everytextfield i make the line

my_textfield.text = xml_object.intro.item[0].attributes.title //that would be "super title!!"
my_textfield.text = xml_object.intro.item[1].attributes.quote //that would be “quote”

am i right ?
But how does title 2 and title 3 go to frame 20 and 40 ?

code in frame 1:
my_textfield.text = xml_object.intro.item[0].attributes.title //that would be “super title!!”

code in frame 20:
my_textfield.text = xml_object.intro.item[1].attributes.title //that would be “super title!!”

code in frame 40:
my_textfield.text = xml_object.intro.item[2].attributes.title //that would be “super title!!”

Remember! To have this kind of syntax you need to use the sephiroth class
http://www.sephiroth.it/file_detail.php?id=134

It’s easy to install and use, just check the example included on how to parse the file. :wink: