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:
<popup>
<item name="title"><![CDATA[title]]></item>
<item name="linkText"><![CDATA[lorem]]></item>
</popup>
and which I try:
<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)
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
titleText.htmlText=MovieClip(parent).popapTitlex;
imge.loader=MovieClip(parent).popapImgx
;
This is difficılt or easy, i don’t know.
Thanks in advance