February 13th, 2007

API Documents


AsWing A2 ASDoc online

AsWing A3 ASDoc online



AsWing A3 0.9 —— 2007.05.11 released

AsWing A3 1.0 —— 2007.06.15 released

AsWing A3 1.2 —— 2007.11.12 released

WYSIWYG GuiBuilder 1.0 —— 2007.11.14 released

AsWing 1.4 —— 2008.6.13 released

AsWing 2.0 for flash player 10, with new default look and feel, new text components, etc —— the next


AsWing A3 Tutorials

This trail tells you how to create graphical user interfaces(GUIs) for Rich Internet Applications(RIAs) and other flash application, using the AsWing components.

  1. Getting Started with AsWing is a quick start lesson.It gives you a bit of background about the AsWing.
  2. Learning AsWing by Example explains the concepts you need to use AsWing components in building a user interface. It is built around serveral progressively complicatied exapmles, so you will learn the basics by examing code samples.
  3. Using AsWing Components tells you how to use each of the AsWing components — buttons, tables, text components, and all the rest.

AsWing A2 old Tutorials


Canvas, a MovieClip in a JPanel

This tutorial will help you get a way to do things with MovieClips you’v familar with before, now in AsWing .

Create an custom icon and JButton alignment

This tutorial will show you to create your own custom Icon for using it in a JButton component.

Customizing The LookAndFeel I

This tutorial shows you the basics of skinning and creating your own custom lookandfeel for the aswing components.

Customizing The LookAndFeel II

In this tutorial we`ll discuss more about the RoyaleLookAndFeel class we created in the previous tutorial.

Customizing The LookAndFeel III

This tutorial shows you create your UI for the JButton component.

Downloading the latest version of AsWing Source code

This tutorial will help you get a way to download the lastest version of AsWing source code.

FDT, MTASC and AsWing Tutorial

This tutorial will help you get started with FDT, MTASC and ASWing and assumes you have already installed FDT and MTASC.

JButton and BorderLayout Tutorial

This tutorial helps you understand the BorderLayout class and the JButton component.

JFrame and GridLayout Tutorial

This tutorial will show you how to use the JFrame component using the GridLayout.

MessageBox (Adding the JToolTip Component)

This tutorial will extend our MessageBox tutorial to show you how to add tooltips to your components.

MessageBox – JFrame FlowLayout JLabel and AttachIcon

This tutorial will show you how to use the JFrame, JLabel, FlowLayout and the MCIcon to create a Message Box.

Rating Application (JFrame,BoxLayout,JLabel and JRadioButton)

This tutorial will show you how to use the JFrame , JLabel , the BoxLayout and JRadioButton to create a Rating system.

SEPY, MTASC and AsWing Tutorial

This tutorial will help you get setup with the SEPY Editor and ASWing and assumes you already have SEPY and MTASC installed.

The JLabel Component

This tutorial goes in depth about the JLabel component

  • Comments(44)

44 Responses to “Documents”

  1. wmon 05 Apr 2007 at 3:22 am

    sir ,can u give a link to download the doc

  2. iileyon 05 Apr 2007 at 8:06 am

    Of course, wm, we are going to release a new version, it will include packaged docoments. :)

  3. wmon 05 Apr 2007 at 3:08 pm

    thanks for you great work.

  4. kiksson 06 Jun 2007 at 4:46 am

    Sir, can you tell me haw can i use Aswing with flash8.
    Because when I tested it with Jlabel, it return me an empty frame.

  5. iileyon 06 Jun 2007 at 5:33 pm

    AsWing A2 is flash7-8 compatible, but it is not compilable with MMC, you can only user MTASC to compile it.

  6. sididion 11 Jun 2007 at 4:52 am

    ok, thank you.
    But you can tell me why!!?
    Because i have an application that use framework of MM.
    I want to delate to delete and to use Aswing.
    And to have the possibility to compile it in the to compiler MMC in the first time and MTASC in the parallel.

  7. iileyon 11 Jun 2007 at 5:32 am

    I don’t know why too. :) MMC compiled AsWing just not works, it is the same to other frameworks for example ActionStep. I think it is the MMC’s issue, we are just use legit syntax of AS2.

    Well, but you can compile your main Application with MTASC, and others, you can compile it with MMC and load it in to the main application. (Or use MTASC to inject the aswing related classes to the exist swf compiled with MMC)

  8. sididion 12 Jun 2007 at 12:39 am

    Did you try to resolve the problems!?
    If we did a traces of Aswing framework.
    Can we know the source of the problem?

  9. iileyon 12 Jun 2007 at 1:12 am

    Yes, we many guys tried to resolve this problem many times, but we all failed, it is a hard problem.
    The problem is that MMC will not initialize the classes right, it initialize the subclass before the superclass of AsWing, for example, it initialize JFrame before Container, then JFrame lost the functionity of Container, then things goes wrong.

  10. sididion 12 Jun 2007 at 1:35 am

    I have an other Question
    I suppose that we use a Jframe.
    A Jframe extend JWindow extend JPopUp extend Component ……
    but why we define an othe JWindow ” public function installUI(c:Component):Void {
    var p:JWindow = JWindow(c);
    }” in the class class org.aswing.plaf.basic.BasicWindowUI which extends WindowUI.
    So we will have 2 Jwindow defined. It is possible!!?

  11. iileyon 12 Jun 2007 at 1:49 am

    It is a compiler problem, i don’t know the right answer, but i guess no. A good compiler will handle that well. :)

  12. sididion 12 Jun 2007 at 5:16 am

    No, it’s not a problem with the compiler.
    I did a trace for my short exemple.
    I create a frame whith a button, to see where is the problem. why did not compile with IDE Flash.
    And I conclude that the problem is coming from the class class org.aswing.plaf.basic.BasicWindowUI which create a new window.
    I think that i the problem, it’s a personnel conclusion.

  13. iileyon 12 Jun 2007 at 5:22 am

    Where did it create a new Window?

  14. sididion 12 Jun 2007 at 5:41 am

    class org.aswing.plaf.basic.BasicWindowUI


    public function installUI(c:Component):Void {
    var p:JWindow = JWindow(c);


  15. iileyon 12 Jun 2007 at 6:14 am

    JWindow(c) is type casting, not create a new JWindow.

  16. sididion 13 Jun 2007 at 2:22 am

    Ah ok, thanks.
    I have an other question.
    I’m testing an exemple with MCPanel, but there is some component that i can see when i compile and the others not.
    what is the specification of MCPanel, it’s different from JFrame or Jpanel!!?

  17. iileyon 13 Jun 2007 at 2:28 am

    MCPanel’s default layout is different, its EmptyLayout(it did nothing, so you may need another layout to do real layout works), and you’d better to pass the width and height when construting.

    BTW:sididi, you’d better to subscribe to our mail list here to discuss, that the official place for general aswing discussing. :)

  18. briskon 18 Jul 2007 at 12:01 am

    I want to know how to use JTable of AsWing3.0, setValueAt()and so on

  19. iileyon 18 Jul 2007 at 1:12 am

    Hi brisk,

    You can find some demo/test about JTable in the Test project.(If you’v downloaded the all-in-one 1.0 package)

  20. tataon 18 Jul 2007 at 7:15 am

    when can we download this document; i need it because i can’t connect this link sometimes;

  21. iileyon 18 Jul 2007 at 6:08 pm

    you can download them here :

  22. tataon 19 Jul 2007 at 8:27 pm

    thank you,iiley

  23. Michael Plankon 10 Sep 2007 at 11:36 am

    How can I restrict the drag area of a JFrame? I don’t want to let the user drag a JFrame around in the whole Flash Movie.

  24. iileyon 10 Sep 2007 at 6:53 pm

    Hi Michael Plank, you can listen the MovedEvent of JFrame, and set it back into restriced area when it is draged out.
    Or, you can call yourFrame.setMaximizedBounds() to set a bounds, it will restrict the drag area, and it will make the maximized size change too.

  25. Acefxon 13 Jan 2008 at 12:43 am


    I have been trying to use JWindow Component but the components i add to it are always disabled.
    Here is a code i just wrote and yet the button is disabled.

    I am writting it using Flex

    import flash.display.Sprite;
    import flash.display.StageScaleMode;

    import org.aswing.AsWingManager;
    import org.aswing.geom.IntDimension;
    import org.aswing.JPanel;
    import org.aswing.JButton;
    import org.aswing.JLabel;
    import org.aswing.Container;
    import org.aswing.ASColor;
    import org.aswing.JFrame;
    import org.aswing.JWindow;

    public class Lay_out extends Sprite
    public function Lay_out()

    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.stageFocusRect = true;

    public function go():void
    var po:JFrame = new JFrame();

    private function lon():JWindow
    var mWin:JWindow = new JWindow(this);

    var but:JButton = new JButton(“Button”);

    var pan:JPanel = new JPanel();

    return mWin;


    Please can someone help me out


  26. iileyon 13 Jan 2008 at 5:23 pm

    Why not use mWin.getContentPane().append(pan, BorderLayout.CENTER); instead of addChild.

  27. Aceon 17 Jan 2008 at 2:14 am


    How do u use aswing and Flex, the code failed to work


  28. iileyon 17 Jan 2008 at 6:06 pm

    Hi Ace, how it failed, can you give us more infomations, our systems works for months, nothing failed here. :)

  29. Aceon 18 Jan 2008 at 12:45 am

    The example of Flex and AsWing components working together is not working,
    Is there a sample code i can see elsewhere at least – Flex Button call JFrame.

    This will lay me a foundation


  30. iileyon 18 Jan 2008 at 2:45 am

    try to call AsWingManager.initAsStandard(yourDisplayRoot, false, true); at your code beginning.

  31. mengjie0718on 26 Jan 2008 at 2:15 am

    use the jtree ,like aswing a3 API,how to user clicks events?

    yourTree.addEventListener(ON_PRESS, __onPressed, this);

    public function __onPressed(tree:Source):void {
    TreePath selPath = tree.getMousePointedPath();

  32. iileyon 27 Jan 2008 at 5:38 pm

    yourTree.addEventListener(MouseEvent.MOUSE_DOWN, __onPressed)

  33. lion 30 Jan 2008 at 5:50 pm


  34. iileyon 30 Jan 2008 at 6:27 pm

    Yes, of course, AsWing components even can works with flex components together. see this

  35. lion 31 Jan 2008 at 5:44 pm

    Thank you ,iiley,I have addChild aswing components to flex uicomponens

    我点击mybtn1时,aswing的组件button1被添加到了panel上,并显示出来了,这时我点击mybtn2 ,aswing的组件button2也被添加到了panel上,但是没有显示出来,只有当鼠标离开mybtn2时,aswing的组件button2才显示出来,也就是在flex中调用aswing的组件时,没有实时刷新。这是为什么???????

  36. lion 31 Jan 2008 at 10:57 pm

    我的 代码如下:

  37. ppzhaoon 11 Mar 2008 at 4:40 am

    Sir,could you tell me how can i capture a double-click event in JTable?

    and…thanks for you great work.

  38. iileyon 11 Mar 2008 at 5:46 pm

    listen the MouseEvent.DOUBLE_CLICK event.

  39. Search Engine Rankingon 10 Jul 2008 at 5:30 pm

    This is really good stuff, I am familiar with Jframe….. also to let everyone know AsWing A2 is flash7-8 compatible…. Keep up posted.

  40. litianzhengon 05 Sep 2008 at 10:28 pm

    I want to make a system of logistics with ASwing,but a lot page in this system ,in the future, will some proplem about performance in this system?

  41. iileyon 07 Sep 2008 at 5:45 pm

    I’ll say, NO. :)
    We’v build many big projects with AsWing, there’s no performance problem.

  42. Lacitoon 28 Nov 2008 at 7:05 am


    Can I build a Flash Lite 2 application with ASwing A2?

  43. iileyon 28 Nov 2008 at 11:24 pm

    I’m not sure, i’v never build a Flash Lite 2 app, but you can just try. :)

  44. […] Here is your chance to test the powerful AsWing framework right now. Check the reference and tutorials (Download-able MiniBuilder web version 0.0.2 in a couple of […]

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.