Created
April 26, 2013 19:53
-
-
Save xtrasmal/5469993 to your computer and use it in GitHub Desktop.
AS3 Banner ClickTag (html side)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var paramList:Object=this.root.loaderInfo.parameters; | |
| clickme.addEventListener(MouseEvent.CLICK, openURL); | |
| function openURL(evtObj:MouseEvent):void | |
| { | |
| var request:URLRequest = new URLRequest(paramList["ClickTag"]); | |
| navigateToURL(request, "_blank"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
| <title>ClickTag</title> | |
| <script language="javascript">AC_FL_RunContent = 0;</script> | |
| <script src="AC_RunActiveContent.js" language="javascript"></script> | |
| </head> | |
| <body bgcolor="#666666"> | |
| <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.url.nl/' | |
| ); //end AC code | |
| } | |
| </script> | |
| <noscript> | |
| <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" 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.url.nl/" /> | |
| <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="http://www.macromedia.com/go/getflashplayer" FlashVars="ClickTag=http://www.url.nl/" /> | |
| </object> | |
| </noscript> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment