iShares Isometric Game Banner
by Scott King on Feb.04, 2010, under ActionScript, Flash
This is a Banner ad for iShares, it contains a small Isometric building block game. The aim is to create the 3D iShares logo out of the scattered building blocks. This game was built on top of an AS2 Isometric engine I developed to be lite weight for the purposes of serving through banner hosting and media companies.
It has an autoplay feature which kicks in after 30seconds and it has an “Auto Build” feature, click the button in the bottom left to activate.
Add some Sex to your Tweens with this new easing equation
by Scott King on Feb.04, 2010, under ActionScript, Flash
I was having a beer with one of my very talented colleagues Robert Shearing (robshearing.com) and we got to talking about the make-up of the various easing equations for usage in Tween engines such as TweenLite. Most of these equations are still based on Robert Penner’s original 11 easing equations: Circ, Cubic, Elastic, Expo, Linear, Quad, Quart, Quint and Sine.
After a few beers we decided that we needed to create a new Easing equation. We figured that is if Quint was to the power of 5, then logically we create an equation to the power of 6.. but what to call it.. after a few more beers we figured if Quart is the power of 4 and Quint is the power of 5 then the power of 6 should be simply called “Sex”. Coincidentally, this is also the Latin word for six.
This gives us a new, slightly sharper Ease and the bonus ability to have some really cool easing combinations such as Sex.EaseIn, Sex.EaseOut and everyones favorite, Sex.EaseInOut.
Get the [Source].
Enjoy your new equation, if you use it on a project please drop us a link in the comments below and please remember, always practice safe Sex.
ActionScript 3 / Flash: Simple FPS Counter Class with Average FPS, FPS Threshold, etc
by Scott King on Jan.11, 2010, under ActionScript, Flash
I wanted a nice, simple, small FPS counter that displayed an Average FPS over a set number of frames, eg: 22fps average over 10 frames.
I managed to find a basic class that I modified to include an average FPS parameter and a threshold parameter that turns the FPS Background to RED if the FPS drops below the threshhold.
Source: [fps_example]
Sony Playstation 3 Launch
by Scott King on Oct.29, 2009, under CSS, Flash, PHP
Today Sony launched their new Playstation 3 web site which I was responisble for creating. I built this for some of the talented people over at Tequila, design by Craig Brooks, downloadable widget by Danny McGillick.
This site presented a few unique challenges. First of all it was to feature a pseudo-3D transition for the load screen but was asked not to use an propitiatory 3D software such as Papervision. The next challenge was to create a flowing navigational menu that is fed from a dynamic XML feed with random positioning of the nav items. The site also needed to feature a “Favorites” system that allowed user to add their favorites sites to a “bookmark” style menu on the site, however due to technical restraints I was not to use a database, this meant storing the “Favorites” in browser cookies and writing a quick interface to access the cookies. Finally the site was built on top of the Kohana PHP framework and an alternate HTML only version developed by the brilliant Luke Schreur. The site features 9 different “Skins”, refresh on the landing page to get a new random skin.
Head on over to http://www.playstation3.com.au to check it out.
Safari blocking popups from Flash – fix
by Scott King on Oct.02, 2009, under ActionScript, JavaScript
I dont understand why Apple can make the best hardware in the world, and then proceed to create the worst software to put on it. Safari (like iTunes) is full of bugs, one of the most obivously yet most poorly documented is the problem that causes Safari to block pop-up windows from Flash even after a user has clicked to intiate the popup.
Here’s the fix:
ActionScript:
import flash.net.*;
...
mybutton.addEventListener(MouseEvent.CLICK, openPopup);
function openPopup(event:Event) {
var jsPopFunc:String = "popupWin";
var _winURL:String = "http://www.rivastakeout.com/staging/stake-your-claim/form.php";
var _winTarget:String = "_self";
var _winWidth:Integer = 600;
var _winHeight:Integer = 400;
var _winName:String = "popup";
var _winParams:String = "location=0,status=0,scrollbars=1";;
var result:Boolean;
if (ExternalInterface.available) {
result=Boolean(ExternalInterface.call(jsPopFunc , _winURL, _winTarget, _winWidth, _winHeight, _winName, _winParams));
}
if (!result) {
var request:URLRequest=new URLRequest(_winURL);
try {
navigateToURL(request, _popupWin);
} catch (e:Error) {
trace("Error occurred!");
}
}
}
JavaScript:
function popupWin(winURL, width, height, name, params){
var left = Math.floor((screen.width - width)/2);
var top = Math.floor((screen.height - height)/2);
var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
if(!name){
name = "newWin";
}
if(!params){
params = "location=0,status=0,scrollbars=0";
}
if (params){
winParms += "," + params;
}
var newWin = window.open(winURL, name, winParms);
if (newWin) {
return true;
}
else{
return false;
}
}
Further reading:
http://www.ultrashock.com/forums/actionscript/popups-from-flash-solution-92036.html
Panasonic take over on Cnet.com.au
by Scott King on Oct.01, 2009, under Flash
Some Flash banners for a full a page take over of Cnet Australia that I created for Panasonic’s new High Definition Blu Ray recorder, quite a cool campaign running on TV and various media at the moment. Design by Nathan Willdig of Rhodes Wingrove.
Take a look at:
FireFox 3 Flash Emebed bug
by Scott King on Sep.08, 2009, under CSS, Flash
Here’s the fix, simple CSS rule on object element.
<style type="text/css" media="screen"> object { outline:none; } </style>
Osmocote and Scotts Lawn Builder banners
by Scott King on Sep.01, 2009, under Misc
A few Flash banners I created for Osmocote and Scotts Lawn Builder on behalf of the guys at Rhodes Wingrove (rhodeswingrove.com). Banner designs by Nathan Willdig at Rhodes Wingrove.
The tap banner was a bit of a trick as it’s always difficult to simulate flowing water nicely, especially when it needs to be interactive and dynamic. There were the usual file size restrictions to work within but I was quite pleased with the final banners.
Scotts Lawn Builder:
Osmocote:
Tour East Australia and Japanese Localisation
by Scott King on Aug.25, 2009, under Misc
This is a site I put together for Tour East, a division of Qantas
http://www.toureast.com.au
Qantas International specials and weather home page panel
by Scott King on Aug.25, 2009, under Misc
























