Labs
iiley July 25th, 2007
AsWing GuiBuilder
AsWing GuiBuilder is a WYSWYG IDE tool for creating user interface of AsWing, it let you manage the layout, component properties directly on the IDE, and then generate well formated actionscript class source file to you.
2007.9.28 : AsWing GuiBuilder 1.0 beta, include Features:
Most standard component support.
Most standard properties of components support, include Layout, Border, Font, Color etc.
Open or Save UI file.
Generate well formated ActionScript3 class file of the UI.
2007.11.14 : AsWing GuiBuilder 1.0, include new Features:
Very fast performance than beta version
LookAndFeel runtime switching.
Workspace path set at first run.
Save notice when exit/close.
Generate selected node of the UI to ActionScript3 class code.
2008.7.24 : AsWing GuiBuilder 1.4.2, include new Features:
Drag scale/move/select component functionity
Support embedFonts, antiAlias, gridType etc properties
More components supported, GridList, JList default items.
haXe code generation supported.
Download it at : http://code.google.com/p/aswing/downloads/list
Try the online version : http://www.aswing.org/guibuilder
———————————
AsPngEncoder
———————————
2007.7.25 : AsPngEncoder 1.0 released, include Features: True color 32-bit with alpha encoder, 24-bit opaque encoder, two trategies of 8-bit any color number indexed encoder(opaque/alpha).
———————————
Because of true color encoding generate large size file, some times you maybe need a low quality picture but small size, then you need 8-bit color.
From searching and reading a lot of documents/articles, finally i wrote one, the arithmetic is not complex, but optimize the speed took much of my time, now it is 16 times fater than my original implementation, also it need about 1000ms to encode a 800*600 image to 8-bit indexed color, with ture color, it only need about 300 ms on my machine.
You can download the newest version here: http://code.google.com/p/aspngencoder/downloads/list
And you can play with this demo test : Lunch Demo it need newest version of AIR runtime.
SVN: http://svn.aswing.org/aswing/trunk/AsPngEncoder/
and
http://svn.aswing.org/aswing/trunk/AsPngEncoderTest/
Here is some screenshot of the demo:
Feedback are welcome.
- Comments(9)

[...] AsPngEncoder [...]
share demo ?
excellent job! it’s good to see someone create an 8bit png encoder, and it works great!
aswing在flash cs4中运行报错:
TypeError: Error #1007: 尝试实例化的函数不是构造函数。
at org.aswing::KeyboardManager()
at org.aswing::KeyboardManager$/getInstance()
at org.aswing::AsWingManager$/initStage()
at org.aswing::AsWingManager$/setRoot()
at org.aswing::AsWingManager$/initAsStandard()
at HelloAsWing()
但是我flashcs4中发布设置设为flashplayer9就一切正常.
估计是与flash 10 sdk的兼容问题,你试试svn上的版本。
Your online version of the GUI builder doesn’t load (web page almost looks like it was hacked).
http://www.aswing.org/guibuilder
Take a look at the link.
Thanks for told me that, it is fixed now.
GUIBuilder is a very good tool,but there are some bugs. example:
1. I can’t implement layout that insert a textfield to a formrow and change size.
2. I change textfield size and position, but the layout is terrible when i add code to my project.
so, I want to fix these bugs.
1. Formrow will follow the biggest width component of the row, you may need to click “revalidate” button to refresh it, specified the column property of JTextField to make it expand.
2. If you need to manuall control the size and position, you need to set EmptyLayout to the container.
That’s features, not bugs. :)