Flash 4, 5, 6 or 7 su ActionScript 2:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, clickTARGET);
}
}
Flash 8 or 9 su ActionScript 2
on (release) {
if (_root.clickTAG.substr(0,5) == "http:") {
getURL(_root.clickTAG, _root.clickTARGET);
}
}
HTML kodas:
Su embed tag:
<embed src="path_to_swf.swf?clickTAG=http://website-to-open.com&clickTARGET=_blank" width="300" height="250">
Su object tag (rekomenduotina):
<object type="application/x-schockwave-flash" data="path_to_swf.swf" width="300" height="250">
<param name="flashvars" value="clickTAG=http://website-to-open.com&clickTARGET=_blank">
<embed src="path_to_swf.swf" FlashVars="clickTAG=http://website-to-open.com" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Google įrankis SWF to HTML5
https://developers.google.com/swiffy/convert/upload
ClickTAG sluoksnio uždėjmas ant swf banerio:
http://getclicktag.com/get-clicktag/
Komentarų nėra:
Rašyti komentarą