A game for iOS and Android phones made with Flex 4.5
Music by Mister Electric Demon
Details and downloads : SwipeBlocks
A game for iOS and Android phones made with Flex 4.5
Music by Mister Electric Demon
Details and downloads : SwipeBlocks
Something that could be very frustrating for a Flex developer is the Image component.
In AS3 you can simply smooth an image when resized, in Flex you can’t : this feature was not added to the component, so when the Image is resized it gets pixelated.
This is even more frustrating when you know that the component share the same low level class than the AS3 equivalent.
There’s a solution : extend the component to access the bitmap and activate smoothing while initialization (component init for Embeded images and loading end for loaded ones).
For my own needs, i have done the following “SmoothImage” component using this solution :
<?xml version="1.0" encoding="utf-8"?>
<mx:Image xmlns:mx="http://www.adobe.com/2006/mxml" init="updateSmoothState()" initialize="updateSmoothState()">
<mx:Script>
<![CDATA[
private function updateSmoothState():void{
if (this.content is Bitmap){
var btmp:Bitmap = this.content as Bitmap;
if (btmp && !btmp.smoothing){
btmp.smoothing = true;
}
}
}
]]>
</mx:Script>
</mx:Image>
And voila, this is a present.
For your convenience i have built a SWC that you just have to put in your Flex project’s “libs” folder to get a new “SmoothImage” component.
It works exactly like “Image” … with smoothing.
This is a nice present that Mike Chambers has given to the Flex/ Flash/ Air devs that owns an iPhone.
A great application that brings the full ActionScript 3 reference on the Apple smartphone.
Simple and fast to use, this is a must have for all.
Yes i know, there are plenty of twitter clients, but i didn’t resist to make a new one.
Because i have good reasons :
And of course, i’d like to rule the world, Mouhahahah …
get it here : Statuzer