Archive

Archive for March, 2009

Adobe AIR Install Badge Cyan Effect

March 19th, 2009

I had some problems to find a way to remove this light cyan effect on Grant Skinners custom install badge. And I was wondering to see so many badge implemantations still keeping this effect on there logo. So I was in in touch with the Adobe team.

badge_hint

They say that the badge is largely grayscale (intentionally so), but that there is a very subtle cyan “light” at the top of the screen. That can be easily disabled by just deleting it, or guiding / editing the “light” layer in the FLA. Great, but what to do if you just have no flash development environment on board, or can`t find the right layer?

They send me a sample_badge_without_cyan_effect.zip.
Grab it if you like. Maybe sometime there is a new version available.  Check it out at:
http://www.adobe.com/devnet/air/articles/badge_for_air.html

stevie AIR 1.5

Compiling Flex Themes Examples

March 18th, 2009

To use multiple styles, themes, skins from within flex we need to compile corresponding layout data to a sfw-file. Some examples bellow.

Compile a simple css file on windows to use it as switchable style (style.swf):

C:\FLEX\flex_sdk_3\bin\mxmlc C:\AIRSDK\pslrss\css\style.css

Compile a theme/skin from fillcolors.com on windows:

C:\FLEX\flex_sdk_3\bin\mxmlc

-include-libraries=
C:\AIRSDK\pslrss\themes\rainbow\CSSPlus.swc,
C:\AIRSDK\pslrss\themes\rainbow\Mate3.swc

C:\AIRSDK\pslrss\themes\rainbow\Rainbow.css

stevie AIR 1.5, Flex 3 , , , ,

Passing Variables to EventListeners in AS 3

March 6th, 2009

Instead of using anonymous functions we can write something like this to access variables from within eventListeners:


private classVar:String    = 'A string just for fun';

private function myClassFunction():void{

    var FunctionVar:String = 'A string just for fun';

    var myHandler:Function = function(e:Event):void{

        classVar           = 'Something else';

        FunctionVar        = 'Something else';

        trace('----Event.CLOSE-----');

        pslnote.removeEventListener(Event.CLOSE, myhandler);

        pslnote            = null;

        return;

    }//handlerEnd

    pslnote.addEventListener(Event.CLOSE,myHandler);

}//functionEnd

stevie Action Script 3