Archive for December, 2011

Spark Color Picker

Spark based Color Picker Component : Check the code base
https://gist.github.com/1527354 – Usage

https://gist.github.com/1527366
https://gist.github.com/1527361
https://gist.github.com/1527358

https://gist.github.com/1559232

Advertisements

set maintainAspectRatio true for Spark Image

To use maintainAspectRatio true in your Spark Image, use the fillMode=”scale” and scaleMode=”letterbox”

<s:Image id=”img” smooth=”true” fillMode=”scale” scaleMode=”letterbox” />

due to : spark.primitives.BitmapImage

private function get maintainAspectRatio():Boolean{
return (_scaleMode == BitmapScaleMode.LETTERBOX && _fillMode == BitmapFillMode.SCALE);}

SVG Editor

Code Snippet for SVG Editor tool using AS3 https://gist.github.com/1506440

Color Transform Image in AS3

Code Snippet to Color Transform the Image https://gist.github.com/1505064