Contact ZenDuo


Archive for February, 2010

iPhone software update 3.1.3

Tuesday, February 23rd, 2010

iPhone-Firmware-3.1.3

Apple have released the latest 3.1.3 firmware update for the iPhone which is now available through the iTunes update service. Rumour has it that the firmware update fixes some of the minor issues shown below:

  • Reports battery level on iPhone 3GS with an improved accuracy
  • Fixes issues that caused third party iPhone apps to crash
  • Resolves a bug that caused an iPhone app to crash when the Japanese Kana keyboard is being used using the Japanese Kana keyboard

Tags:
Posted in iPhone | No Comments »

Actionscript 2 key listener

Tuesday, February 23rd, 2010

A simple and effective way of attaching a listener to a flash document. Great for using keyboard presses to perform actions on a website. The example below can be used to call a function when the user hits the enter key on their keyboard.

keyListener = new Object();
keyListener.onKeyDown = function() {
if (Key.getCode() == Key.ENTER){
trace('you just hit the enter button')
}
};
Key.addListener(keyListener);

Tags: ,
Posted in ActionScript & Flash | 1 Comment »

Find and Replace AS2

Friday, February 19th, 2010

A nice simple function to find and replace characters in a string using actionscript 2. This is perfect if you want to replace words or even remove words/characters from a string.

function stringReplace(myString:String, findThis:String, replaceThis:String):String{
return myString.split(findThis).join(replaceThis);
}

myString = "example-of-some-words-with-dashes"
/////Strip out all of the dashes by replacing -'s with nothing
myString = stringReplace(linkname, "-", "");
trace(myString)

Tags: , ,
Posted in ActionScript & Flash | No Comments »

Spacer: Perfect layout spacing

Friday, February 12th, 2010

Get Adobe Flash player

When creating any website design layout, its crucial to pay attention to detail. A common layout formation is the three column. This often requires you to calculate the width of each box taking into account any margins you wish to apply to these boxes. This handy little tool does all of the calculations for you. Simply enter all of the information in the boxes above to retrieve the exact width to set each box to.

Tags: , , , ,
Posted in ActionScript & Flash, Website Design Tools | No Comments »