clicktag flash’ınıza html’den veri göndermenize yarayan parametre alanıdır.
Genellikle flash’da hazırlanmış bannerlar’da kullanılır. Banner’a aşağıdaki kod ilave edilir.
btn.addEventListener (MouseEvent.CLICK, clicks);
function clicks (event:MouseEvent):void
{
if (root.loaderInfo.parameters.clicktag.substr(0,5)=="http:")
{
navigateToURL (new URLRequest(root.loaderInfo.parameters.clicktag), "_blank");
}
}
html’de ise flashVars ile parametre kısmına banner’a tıklandığında gitmesini istediğiniz URL adresi yazılır.
<param name="flashvars" value="clicktag=http://www.flashtr.com/>
Sizin url adresiniz html’de gözüktüğünden dolayı, google yada diğer arama motorları tarafından indexlenecektir.
-------------------------------------------------------------------------------
Clicktag is a parametre area which provides you to transfer your data from HTML to Flash.
It is used for banners which are composed with flash. The code which is below should be added.
btn.addEventListener (MouseEvent.CLICK, clicks);
function clicks (event:MouseEvent):void
{
if (root.loaderInfo.parameters.clicktag.substr(0,5)=="http:")
{
navigateToURL (new URLRequest(root.loaderInfo.parameters.clicktag), "_blank");
}
}
By using HTML you should write URL address to the parametre area with flashVars which you want to connect when banner is clicked.
<param name="flashvars" value="clicktag=http://www.flashtr.com/>
It will be indexed by google or any other search engine because your URL address reflects to HTML.