Flash Quick Tip: How to randomize an Array

This snippet of actionscript can be used to simply re-order or randomize an array in Adobe Flash.

I had to google this today so i though i would share it with you!

This snippet of actionscript can be used to simply re-order or randomize an array in Adobe Flash.

var myArray = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9);
myArray.sort(function (){
return Math.round(Math.random());
});
trace(myArray);

ps and yes i know I’ve spelt randomise wrong ; )

Inspired thinking – I Wear Your Shirt

Do you remember the guy that created www.milliondollarhomepage.com to get himself through college and pocketed one million dollars? Everyone was jealous because they didn’t think of it first. Well, someone else has updated the concept and it still works!

Jason is a web designer from the states who has designed and created www.iwearyourshirt.com.

iwearyourshirt

Do you remember the guy that created www.milliondollarhomepage.com to get himself through college and pocketed one million dollars? Everyone was jealous because they didn’t think of it first. Well, someone else has updated the concept and it still works!

Jason is a web designer from the states who has designed and created www.iwearyourshirt.com.

The idea is simple. Everyday he will wear a t-shirt with a company’s name and brand on the front of it. That alone will get you nowhere but Jason has cleverly linked up his idea with blogging and social media platforms to provide really good marketing posibilities. He posts daily on youtube, flickr and twitter to make sure the t-shirt gets noticed. The daily price goes up as the year passes, it originally started a $1, this makes sense as more people will know about the site by December!

Top idea Jason. Good luck.

(i wonder what he will do with 365 used t-shirts in a years time?)

Nocturnal Day – The Anatomy of a Night Out

A cool video, inspired by the flyers you get handed out to you advertising club nights throughout the country, telling the story of one particularly good night out.

A cool video, inspired by the flyers you get handed out to you advertising club nights throughout the country, telling the story of one particularly good night out.

Music is Mr Scruff – get a move on! Top choon!

Goon City – A pixel art world

Ryan Allen is a member of the something aweful forums and together with the forum members has produced a pixel art world. It instantly brings back memories of the original simcity games and is very similar to the works of eboy. Using a few photoshop brushes you can create a plot of land for this map in no time at all. You can tell some of the artists have spent a long time of theirs. I especially love the sense of humour in some of the creations.

Ryan Allen is a member of the something aweful forums and together with the forum members has produced a pixel art world. It instantly brings back memories of the original simcity games and is very similar to the works of eboy. Using a few photoshop brushes you can create a plot of land for this map in no time at all. You can tell some of the artists have spent a long time of theirs. I especially love the sense of humour in some of the creations.

a screen shot of goon city

a screen shot of goon city

a screen shot of goon city

The site was originally created with a google maps platform but suffered from a huge hit rate and was taken down. I’m very glad to say it is now back up and surprisingly it is now built using the Microsoft silverlight platform. This is one of the first times i have seen a practical use of the silverlight over adobe flash. A hint of things to come perhaps?

iPhone emulator built with Safari 3

Ajaxian recently posted a link to blackbaud.com and the release of an iPhone Browser Simulator.

The guys over at blackbaud labs have carefully skinned a full version of safari 3 into a windows compatible program. The iPhone is apparently based on an older version of Safari than the current released one so this provides an excellent way to check your websites compatibility without having to bug your friends who own an iPhone!

iphone_emulator

Ajaxian recently posted a link to blackbaud.com and the release of an iPhone Browser Simulator.

The guys over at blackbaud labs have carefully skinned a full version of safari 3 into a windows compatible program. The iPhone is apparently based on an older version of Safari than the current released one so this provides an excellent way to check your websites compatibility without having to bug your friends who own an iPhone!