list of flex testing frameworks

Posted by druva | AIR, Flex, as3 | Monday 22 February 2010 10:47 am

This is the list of flex testing frameworks Which I came Across

FlexUnit (Adobe Open Source)
FlexPMD (Adobe Technical Services)
Funit (Open Source)
asUnit (Open Source)
fluint (Open Source)
FlexMonkey (Open Source)
Selenium (Open Source)
FlashSelenium (Open Source)
HP QuickTest Professional 9.5
mock-as3 (Open Source)
FlexCover (Open Source)
FunFX
Mock4AS
ASMock
Mockito

 

Flash CS4 TextElement TextBlock FontDescription TextBlock TextLine

Posted by druva | AIR, Flash, Flex, as3, utils | Thursday 11 February 2010 12:48 pm

This code show how to use TextElement, TextBlock, FontDescription, TextBlock, TextLine

package druva{
import flash.display.Sprite;
import flash.text.engine.*;

public class TextTest extends Sprite {

public function TextTest() {

for (var j:int=0; j<=10; j++) {
var myString:String="Druva";
var myFormat:ElementFormat = new ElementFormat();

var myFontDesc:FontDescription=new FontDescription('Georgia','normal','italic','device');
myFormat.fontSize=2+2*j;
myFormat.fontDescription=myFontDesc;
myFormat.color = Math.random() * 0xFFFFEE;

var textElement:TextElement=new TextElement(myString, myFormat);
var textBlock:TextBlock = new TextBlock();
textBlock.content=textElement;

var myTextLine:TextLine=textBlock.createTextLine(null,300);

myTextLine.x = 30+(3*(j*(j+1)/2));
myTextLine.y = 150;

addChild(myTextLine);
myTextLine.addEventListener(Event.ENTER_FRAME, onLoop);
}

}
import flash.events.*;
private function onLoop(e:Event) {
e.currentTarget.rotationY += 3;
e.currentTarget.rotation = mouseX;
}
}
}

This movie requires Flash Player 9

 

Add Background Image for AIR Application

Posted by Vineela | AIR, Flash, MXML | Tuesday 12 January 2010 11:23 am

background image for AIR application


&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:WindowedApplication name=&quot;WindowedApplication_backgroundImage_test&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;vertical&quot; verticalAlign=&quot;middle&quot;&gt;

    &lt;mx:Style&gt;
        WindowedApplication {
            backgroundColor: white;
            backgroundImage: ClassReference(&quot;mx.skins.halo.ApplicationBackground&quot;);
        }
    &lt;/mx:Style&gt;

&lt;/mx:WindowedApplication&gt;