Infekted Media

Ponderings, Attempts, and Resources

clickTAG for actionscript 3.0

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

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..

White-space with <li> in IE

December 17th, 2006

For some reason, when using an unordered or ordered list, Internet Explorer 6.0 adds what appears as an entire line of space between each item. I found that as long as I don’t use a carriage return after each item, and leave all items on a single line, it fixes the problem. But I really didn’t want to mess with my formatting. I like my formatting. So I continued researching to find another solution and found that by using display:inline-block; it cleared up this problem quite nicely.