Monday, October 19, 2009

Vertical Ticker Scroll with jQuery

Ever wanted to make those cool vertical scroll things? Here is a great light weight way to accomplish it:

Friday, October 9, 2009

Kern dynamic text is Flash Actionscript

I've always needed to know how to kern dynamic text is Flash Actionscript, and I knew there had to be a way. Well, here it is. I discovered this somewhere, made some tweeks, good stuff.

function kernText(myTextField, kerning) {
myTextField.html = true;
var newFormat:TextFormat = new TextFormat();
newFormat.letterSpacing = kerning;
//newFormat.font = "Arial"; // Add now whatever format needs you have.
myTextField.setTextFormat(newFormat);
}

Wednesday, October 7, 2009

Flash right-click menu

I've always been looking for a nice and easy Flash right-click menu builder. This one seems extremely straight-foward and EASY!



function calledFunction1() {
trace("calledFunction1");
}

function calledFunction2(){
trace("calledFunction2");
}
MENU = new ContextMenu();
MENU.hideBuiltInItems();
insertAfter = new ContextMenuItem("Call function 1", calledFunction1);
insertBefore = new ContextMenuItem("Call function 2", calledFunction2);

MENU.customItems.push(calledFunction1);
MENU.customItems.push(calledFunction2);
_root.menu = MENU;