Month: May 2012
-
Introducing Starling
Very nice examples with Starling Framework. There is also a book π Download it from here.
-
Creating an image only mobile button skins for Flex 4 (AIR Mobile)
One of the main differences when creating mobile Flex AIR apps from normal Flex Apps is that itβs better to use ActionScript only skins. With that in mind Iβve created a simple skin for image buttons. Why this skin is better than using the default spark.skins.mobile.ButtonSkin? The answer is quite simple – performance. Since this…
-
JavaScript .Net like String formatting function
Just a simple extend to the JavaScript String prototype which makes things much more readable π String.prototype.beginsWith = function(str) {return (this.match(“^”+str)==str)} String.prototype.endsWith = function(str) {return (this.match(str+”$”)==str)} String.prototype.format = function() { var s = this, i = arguments.length; while (i–) { s = s.replace(new RegExp(‘\{‘ + i + ‘\}’, ‘gm’), arguments[i]); } return s; }; Example:…
-
Overlay the AIR 3.2 SDK in Flash Professional CS5.5
Although adding AIR 3.2 in Flash Builder is an easy task, the situation with Flash CS 5.5 is not the same. This article really helped me. Itβs a little bit hacky, but who cares when it works π