January, 2009


23
Jan 09

Flex Explorers that I found while googling

Flex Styles Creator
Derek Wischusen: Flexonrails.net
Derek did some great work adding server-side css-file creation functionality to the Style Explorer. Derek contributed code to the Adobe Consulting Style Explorer in the form of “Export All CSS” functionality, but if you’re looking to create a new CSS file, rather than just copy-and-paste the CSS, check the Flex 2: Styles Creator out.

Flex Filter Explorer
Joe Johnston: Merhl.com

Joe modifies the Flex Style Explorer to create a Filter Explorer. Alter Flex filter properties and generate the appropriate MXML code to create the filter. Awesome!

Flex 2.0 Primitive Explorer
Jason Hawryluk: Flexibleexperiments.wordpress.com
Jason starts with the Style Explorer UI, and creates a great application for exploring and creating code for drawing primitive objects in Flex. If ever there’s a use case for needing to visualize code, and to be able to graphically manipulate something, it would be this use case. Great job Jason.

Flex Transitions and Effects Explorer
David Keutgens: blog.keutgens.de

David takes inspiration from the Flex Style Explorer and creates his own Flex Effects Explorer.

Flex Regular Experssion Explorer
Ryan Swanson: blog.ryanswanson.com

Ryan Swanson takes inspiration from the above explorers and built the excellent utility for the people who are working Regular Expression in Flex or Action Script and made our life easy.


22
Jan 09

Flex Builder Performance TIPS

Close editors automatically

Window -> Preferences -> Editors. Select “Close all editors on exit

Close all editors on exit [If you don't want to maintain state]

Window -> Preference -> General -> Editors and select “Close editors automatically”

[ Don't select Restore Editor on start up]

Close unused projects

Go to the Flex Navigator pane on the left. Right click on unused projects and select “Close Project”

preference-window

Disable code folding [In most cases we will not use code folding]

Go to Window -> Preference -> Flex -> Editor. Uncheck “Code folding”.

Use memory monitoring plugin

help->Software updates -> find and install -> search and install ->  new remote site (add your url here)

I hope there are many memory monitoring plugins for eclipse.

I am using the following one

http://www.kyrsoft.com/updates/

memorymanager


21
Jan 09

Writing a static block in Flex or Action Script 3

In a single sentence write the code in your class directly, it will goes under static block execution :) , sounds simple, Yes it is, typically in java to initialize static variable/ to execute some statments we need to write in this way.

public class myclass{
static{
//some statements here
}
//some variables declared here
//some functions defined here
}

Where as in Action Script 3

public class myclass{
//can write static statements here

//some variables declared here
//some functions defined here
}

Just see the example code here

package
{
import mx.controls.Alert;

public class Test
{
public static var i:int = 0;
public function Test()
{
trace(“common what you want test here “+i);
}
//static block
{
Alert.show(“Oh yes “+i);
i+=1;
}

}
}