November 24, 2010
Got any blacker? (Taken with instagram)

Got any blacker? (Taken with instagram)

November 23, 2010
Considered extremely dangerous (Taken with instagram)

Considered extremely dangerous (Taken with instagram)

August 22, 2010
Foodspotting 2.0


Foodspotting is a 4squaresque type visual local food guide based not only by restaurant but also dishes by allowing people to take photos of their meals. They describe themselves as:

Foodspotting answers the question “What’s good around here?” by making finding and sharing food recommendations as easy as snapping a photo.

Foodspotting has just launched the Foodspotting 2.0 version of their iPhone app. Really dig the site, which allows you to interact with a googlemap of photos entries and allowing the ability to favourite and “nom it” the pictures they like.

The footer illustration is quite nice also.


August 21, 2010
5 row QWERTY for iPad?

I love my iPad. I find it great for consuming content.  Its just about the right size for reading books, sites or magazines. I do like creating content on it but find typing with it annoying at times due to having to toggle between the text and numerals far too often. Why not add a 5th row for the numbers to save a bit of time? I wonder if this would work on a jail broken iPad?

August 21, 2010
AS3: Easy globalToLocal in AS3

Short little snippet I found the other day to convert coordinates from one movieclip to another in Actionscript 3
function localToLocal(fr:MovieClip, to:MovieClip):Point {
    return to.globalToLocal(fr.localToGlobal(new Point()));
};

//Useage
var localPoint:Point = localToLocal(fromMc,toMc);

August 21, 2010
AS3: Randomise Array method

Found this over at daveoncode and thought i would like to share it:

private function _getRandom(arr:Array):void

    var arr2:Array = new Array();

    while (arr.length > 0) {
        arr2.push(arr.splice(Math.round(Math.random() * (arr.length - 1)), 1)[0]);
    }

    return arr2;
}

August 21, 2010
AS3 dynamic fonts class

Simple class to include dynamic fonts in your flash movie. You can either compile this from your fav AS editor or apply it to an FLA as the document class.

To access the fonts, all you will need to is load in the generated swf into your project and use the fontName value you specify in the class to apply the appropriate font.

It’s also good practice to limit the unicode range to characters you need. Adobe provides a good reference, flash-unicode-table.xml, which you can find inside the Flex SDK 2/frameworks folder.

package {
   
    import flash.display.MovieClip;
    import flash.text.Font;
   
    public class Fonts extends MovieClip {
        [Embed(source='C:/WINNT/fonts/DiCnBd.ttf', fontName=’_dinBold’, unicodeRange='U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE')]  
        public static var _dinBold:Class;
        Font.registerFont(_dinBold);
        trace(”_dinBold LOADED”);
       
        [Embed(source='C:/WINNT/fonts/arial.ttf',fontName=’_Arial’, unicodeRange='U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE')]  
        public static var _Arial:Class;
        Font.registerFont(_Arial);
        trace(”_Arial LOADED”);
       
        [Embed(source='C:/WINNT/fonts/arialbd.ttf', fontWeight= "bold",fontName=’_ArialBold’, unicodeRange='U+0021-U+007A,U+00BB,U+00A9,U+2122,U+00AE')]  
        public static var _ArialBold:Class;
        Font.registerFont(_ArialBold);
        trace(”_ArialBold LOADED”);
       
    }
}

August 21, 2010
AS3: Random Colour between 2 colour values

Importing some older content from my wordpress blog:
——————————————————————————————————

import fl.motion.Color;

var color1:uint = 0x03e338;
var color2:uint = 0xbbe303;
var newColor:uint = Color.interpolateColor(color1, color2, randomHue);

private function _randomNumber(low:Number=NaN, high:Number=NaN):Number
{
    var low:Number = low;
    var high:Number = high;

    return Math.random() * (high - low) + low;
}
———————————————————————————————————

Liked posts on Tumblr: More liked posts »