Infekted Media

Ponderings, Attempts, and Resources

Archive for the 'Programming' Category

clickTAG for actionscript 3.0

Friday, January 16th, 2009

If you are looking to get clickTAG to work for actionscript 3.0 in your flash ad, you have come to the right place. Being that I had to put forth more google efforts than normal to find a simple solution, I figured I’d post my findings to make it easier for others.

Actionscript 3.0 clickTAG

var request:URLRequest = new URLRequest(root.loaderInfo.parameters.clickTAG);
myButton.addEventListener(MouseEvent.MOUSE_UP, tracker);
function tracker(event:MouseEvent):void {
navigateToURL(request, “_blank”);
}

And might as well put up Actionscript 2.0 clickTAG code:

on (release) {
if (clickTAG.substr(0,5) == “http:”) {
getURL(clickTAG, target=”_blank”);
}
}

Something to be aware of, the clickTAG reference may have different case. Some clicktag, clickTag, or in my case clickTAG.

Object Oriented Programming w/ PHP

Tuesday, February 13th, 2007

I have come to the realization that I need to completely restructure my programming methods; Less procedural, more object oriented. At this point, I believe I understand the concept and see how I need to adapt to this approach right now.

Currently I am reading Sitepoint’s “PHP Anthology” volumes 1 and 2. This book does a great job of helping break from my procedural thought patterns and get me to think more “object oriented”. It is also providing me a good brush up on the syntax and evolution of php as we are now at version 5.

Here is a nice tutorial I found giving some basics for objects and classes in php. There are some other really good tutorials to be found at this site.

So, back to studying..