# Flash and XML help! : (

**URL:** <https://forum.kirupa.com/t/flash-and-xml-help/297779>\
**Category:** Uncategorized\
**Created:** [October 8, 2009, 11:08am UTC](https://forum.kirupa.com/t/flash-and-xml-help/297779 "2009-10-08T11:08:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![donkeykong](https://avatars.discourse-cdn.com/v4/letter/d/6f9a4e/32.png) [@donkeykong](https://forum.kirupa.com/u/donkeykong)\
**Post date:** [October 8, 2009, 11:08am UTC](https://forum.kirupa.com/t/flash-and-xml-help/297779/1 "2009-10-08T11:08:04Z")

</div>

Hi all

bit of a newbie, so probably quite easy if you know how:eek:

would anyone beable to help with sorting out an XML file, what I have is a tooltip that loads in via XML and exported from flash. the XML loads in 2 text fields, field and field2.  
what I am trying to do is add a button also to the tooltip so that you can click and go to a url.

would anyone beable to help with this.

this is what I have in my XML file;

```auto
 
<?xml version="1.0" encoding="utf-8"?>
<data>
 <image name="image 1" path="img/img1.jpg" 
 title="Food Fight" 
 text="Information here!" />
</data>

```

this loads in 2 text fields.

this is what I have in my AS;

```auto
      var tooltip:ToolTip = new ToolTip();
   //tooltip.buttonMode = false;  
                tooltip.field.text = titles;//loads tooltip 1
                tooltip.field2.text = texts;//loads tool tip 2
                holder.addChild(tooltip);

```

I thought I could do something like this but I seem to be getting errors  
XML

```auto
 
<?xml version="1.0" encoding="utf-8"?>
<data>
 <image name="image 1" path="img/img1.jpg" 
 title="Food Fight" 
 text="Information here!" 
  button="click to view/>
</data>

```

and in my AS

```auto
 var tooltip:ToolTip = new ToolTip();
    //tooltip.buttonMode = false;  
                tooltip.field.text = titles;//loads tooltip 1
                tooltip.field2.text = texts;//loads tool tip 2
                tooltip.field3.text = buttons;//loads tool tip 3
                holder.addChild(tooltip);

```

but just not working, what am I doing wrong:yikes:

many thanks for any help!
