Posts Tagged ‘Flex Builder’

How to use FlexUnit in Flex

Earth-Scan-256x256 If you’re a java programmer, you may familiar with JUnit. Today, software testing is becoming more and more important. A good platform needs good testing tools. Now, Adobe release the unit test tool on flex named FlexUnit. So, let’s try it, and gives you a direct-viewing understand.

clip_image002

I’ll suppose the reader, you familiar with Flex and AS 3.0(or AS 2.0), and any knowledge about software testing is unnecessary. This demo can be ran in Flex Builder 3.0.

DownloadDownload Full Source

(more…)

Set the ANT_OPT for flex ant tasks to avoid the error “out of memory” threw by Flex Builder when building a huge project

memory Problem Summary: When I compile a project including thousands MXML and AS files with Flex Ant, I got an error message as below displayed in the Console panel of Flex Builder:

  1. java.lang.OutOfMemoryError: Java heap space
  2. at java.util.HashMap.resize(Unknown Source)
  3. at java.util.HashMap.addEntry(Unknown Source)

It seems that the memory usage of my JRE reaches its limitation — as we know, Flex Builder is running in JRE. Here is a simple way to solve this problem. It‘s just changing the preferences settings of Flex Builder.

Solution Summary: There are two useful arguments of JRE to control the memory usage:

  1. -Xms define the minimum usage of memory by JRE
  2. -Xmx define the maximum usage of memory by JRE

I just set –Xmx to 1024m to satisfy the usage of compiling such huge Flex project.

(more…)

the list of MXML/AS3 editor or development environment besides Flex Builder

Adobe_AIR_Support_LogotypeOutside of the Flash interface, what do you guys use to edit and debug your AS3 classes in? I use Flex Builder for the brunt,but when I have no need to debug or just want in and out fast,I use notepad to view or edit.The following are some other MXML/AS3 editor or development environment.

(more…)