# XML Flash image link problem

**URL:** <https://forum.kirupa.com/t/xml-flash-image-link-problem/311785>\
**Category:** flash\
**Created:** [July 16, 2010, 10:20am UTC](https://forum.kirupa.com/t/xml-flash-image-link-problem/311785 "2010-07-16T10:20:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![medianpencil](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@medianpencil](https://forum.kirupa.com/u/medianpencil)\
**Post date:** [July 16, 2010, 10:20am UTC](https://forum.kirupa.com/t/xml-flash-image-link-problem/311785/1 "2010-07-16T10:20:30Z")

</div>

Hello,

I edit a template that i bought and i almost finished all things but there is a big problem in popup window. Originally template has only texts in popup window. But i want to put some or only one image in it. I’m not good at ac and i’m stuck.

Here is XML original code:

```auto

<popup>
   <item name="title"><![CDATA[title]]></item>
   <item name="linkText"><![CDATA[lorem]]></item>
</popup>

```

and which I try:

```auto

<popup>
   <item name="title"><![CDATA[KS-1010]]></item>
   <item name="linkText"><![CDATA[Lorem]]></item>
   <item name="Img"><Image imageUrl="images/p2_pic1.png"/></item>
 </popup>

```

Here is AC3 original code:(i added red part)

```auto
function onSwitchPopupx(event:TemplateEvent):void {
                var targetPage:Number = event.info[0];
                
                xpopapPage.popapTitlex = websiteXML.pages.titlePage[_root.linkPage].pagePopup.popup[targetPage].item.(@name == "title");
                xpopapPage.popapInfox = websiteXML.pages.titlePage[_root.linkPage].pagePopup.popup[targetPage].item.(@name == "linkText");
                xpopapPage.popapImgx = websiteXML.pages.titlePage[_root.linkPage].pagePopup.popup[targetPage].item.(@name == "Img");
                
                xpopapPage.gotoAndPlay('open');            
            
}

```

Code for text object

```auto
titleText.htmlText=MovieClip(parent).popapTitlex;

```

```auto

imge.loader=MovieClip(parent).popapImgx

```

;

This is difficılt or easy, i don’t know.

Thanks in advance
