Circle Radiant AS3 Button

Code Available here https://gist.github.com/3180501

Advertisements

Average RGB colors

Util for Finding Average RGB colors seperately

https://gist.github.com/2490634

Detect Skin Colors using AS3

Did a stint on Flex after a long gap, got this..

https://gist.github.com/2421025

https://gist.github.com/2421017

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

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