AS3 ClickTAGS? August 08, 2011 07:57AM | Registered: 12 years ago Posts: 13 |
Hi FLASHEFF 2.0 Admins.
Do you guys have a working example of an .fla with as3 code using a [working] example of the clicktags code?
with included destination url so I know how and where to include my own url.
Please help im on a ridiculous deadline from my management and AS3 seems to be quite a thorn for many out there like myself.
Thank you
Do you guys have a working example of an .fla with as3 code using a [working] example of the clicktags code?
with included destination url so I know how and where to include my own url.
Please help im on a ridiculous deadline from my management and AS3 seems to be quite a thorn for many out there like myself.
Thank you
Re: AS3 ClickTAGS? August 08, 2011 02:50PM | Admin Registered: 15 years ago Posts: 547 |
Below is the action script code:
var paramList:Object = this.root.loaderInfo.parameters;
addEventListener(MouseEvent.CLICK, openURL);
function openURL(evtObj:MouseEvent):void {
var request:URLRequest = new URLRequest(paramList["clickTag"]);
navigateToURL(request, "_blank");
}
And below you have the html code:
var paramList:Object = this.root.loaderInfo.parameters;
addEventListener(MouseEvent.CLICK, openURL);
function openURL(evtObj:MouseEvent):void {
var request:URLRequest = new URLRequest(paramList["clickTag"]);
navigateToURL(request, "_blank");
}
And below you have the html code:
<script language="javascript"> if (AC_FL_RunContent == 0) { alert("This page requires AC_RunActiveContent.js."); } else { AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0', 'width', '400', 'height', '150', 'src', 'example', 'quality', 'high', 'pluginspage', 'http://www.macromedia.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'example', 'bgcolor', '#666666', 'name', 'example', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'example', 'salign', '', 'flashvars', 'clickTag=http://www.jumpeyecomponents.com/' ); //end AC code } </script> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[download.macromedia.com]; width="400" height="150" id="example" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="example.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#666666" /> <param name="FlashVars" value="clickTag=http://www.jumpeyecomponents.com/" /> <embed src="example.swf" quality="high" bgcolor="#666666" width="400" height="150" name="example" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="[www.macromedia.com]; FlashVars="clickTag=http://www.jumpeyecomponents.com/" /> </object> </noscript> </body> </html>
Re: AS3 ClickTAGS? August 08, 2011 03:15PM | Registered: 12 years ago Posts: 13 |
Re: AS3 ClickTAGS? August 09, 2011 08:03AM | Admin Registered: 15 years ago Posts: 547 |
Sorry, you do not have permission to post/reply in this forum.