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);
}
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;
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;
Thursday, July 2, 2009
Easy way to Parse RSS in PHP
Here is some simple code for parsing RSS 2 in PHP. It's so easy, I can't believe it.
<?php
$doc = new DOMDocument();
$doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml');
$arrFeeds = array();
foreach ($doc->getElementsByTagName('item') as $node) {
$itemRSS = array (
'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
);
array_push($arrFeeds, $itemRSS);
}
?>
Thanks to: How to parse RSS feeds with PHP
Monday, June 22, 2009
CSS Image Replacement for Buttons
Yes, you could just use the input type="image" but if you want to replace buttons with images purely with CSS, this is a great method.
A quick note, this won't work in IE6 unless you set your button as a BUTTON not an INPUT. This is a very important point.
Friday, June 19, 2009
Keep Footer at the Absolute Bottom of Page
Have you ever wanted to have a footer always be on the bottom of the page, even if the content of the page wasn't very tall? Usually people use javascript, but below is a way to do it with only CSS. This even works on IE6!
Take a look here: Footer at the Bottom of the Viewport
P.S. if you view source on the above link, you will see all the CSS and HTML you need. It works great!
Wednesday, June 3, 2009
Nice Drop Down Menues
I've been on a quest for a long time to find a good, reliable and customizable dropdown menu. I've found some but this is a great one to try out:
Subscribe to:
Posts (Atom)