CODE
05/08/2014
I need an online codesnippet repo…this will be it
Publishing Guidelines:
Name–> sponsor_campaign_lengthxheight.swf:
Primary (Flash): sponsor_campaign_728x90.swf
Secondary (gif/jpg): sponsor_campaign_728x90.gif/jpg
AS3 clickTAG (flash tracking)
//Add to Actionscript layer
import flash.net.URLRequest;
import flash.net.navigateToURL;
function onButtonClick(evt:MouseEvent):void{
var click_url:String = root.loaderInfo.parameters.clickTAG;
if(click_url) {
navigateToURL(new URLRequest(click_url), '_blank');
}
}
//add to button layer
//mainbtn is the instance name of the button so change if needed
mainbtn.addEventListener(MouseEvent.CLICK, onButtonClick);
ESPN, DISNEY, ABC (clicktag)
mainbtn.addEventListener(
MouseEvent.CLICK,
function():void
{
if (root.loaderInfo.parameters.clicktag.substr(0,5)==”http:” || root.loaderInfo.parameters.clickTAG.substr(0,6)==”https:” )
{
navigateToURL(new URLRequest(root.loaderInfo.parameters.clicktag), “_blank”);
}
}
);
READS
ABC, Disney and ESPN Guidelines
ABC, Disney and ESPN Tutorials
MYSQL FIX FOR SERVER START IN LOCAL HOST
sudo chown -R _mysql:wheel /usr/local/mysql/data
.htaccess
# redirect your entire website to HP
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? http://mcsaatchi-share.com/dev/patoma/ [R=301,L]
rewriteRule ^/index\\.php$ http://mcsaatchi-share.com/dev/patoma/ [R=301,L]
Read some more...
« Rastabus, Melrose and Other Stories | AS3 Stream Video and Fade In Object During Playback »
Something to Say?