Documents
iiley February 13th, 2007
API Documents
——————————————————
RoadMap
——————————————————
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.
- Getting Started with AsWing is a quick start lesson.It gives you a bit of background about the AsWing.
- 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.
- 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)
sir ,can u give a link to download the doc
Of course, wm, we are going to release a new version, it will include packaged docoments. :)
thanks for you great work.
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.
!!!!!!!
AsWing A2 is flash7-8 compatible, but it is not compilable with MMC, you can only user MTASC to compile it.
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.
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)
Well.
Did you try to resolve the problems!?
If we did a traces of Aswing framework.
Can we know the source of the problem?
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.
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);
installDefaults(p);
}” in the class class org.aswing.plaf.basic.BasicWindowUI which extends WindowUI.
So we will have 2 Jwindow defined. It is possible!!?
It is a compiler problem, i don’t know the right answer, but i guess no. A good compiler will handle that well. :)
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.
Where did it create a new Window?
Here:
class org.aswing.plaf.basic.BasicWindowUI
{
……..
public function installUI(c:Component):Void {
var p:JWindow = JWindow(c);
installDefaults(p);
}
………
}
JWindow(c) is type casting, not create a new JWindow.
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!!?
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 https://lists.sourceforge.net/lists/listinfo/aswing-users to discuss, that the official place for general aswing discussing. :)
I want to know how to use JTable of AsWing3.0, setValueAt()and so on
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)
when can we download this document; i need it because i can’t connect this link sometimes;
you can download them here : http://code.google.com/p/aswing/downloads/list
thank you,iiley
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.
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.
Hi
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
package
{
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()
{
super();
AsWingManager.setRoot(this);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.stageFocusRect = true;
lon();
}
public function go():void
{
var po:JFrame = new JFrame();
po.setSizeWH(300,300);
po.show();
}
private function lon():JWindow
{
var mWin:JWindow = new JWindow(this);
mWin.setSizeWH(400,400);
var but:JButton = new JButton(”Button”);
but.setSizeWH(120,30);
but.setEnabled(true);
but.addActionListener(go);
var pan:JPanel = new JPanel();
pan.append(but);
pan.pack();
mWin.addChild(pan);
//mWin.setEnabled(true);
mWin.show();
return mWin;
}
}
}
Please can someone help me out
Keila
Why not use mWin.getContentPane().append(pan, BorderLayout.CENTER); instead of addChild.
Hi
How do u use aswing and Flex, the code failed to work
Thanks
Hi Ace, how it failed, can you give us more infomations, our systems works for months, nothing failed here. :)
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
Thanks
try to call AsWingManager.initAsStandard(yourDisplayRoot, false, true); at your code beginning.
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();
….
}
};
yourTree.addEventListener(MouseEvent.MOUSE_DOWN, __onPressed)
在flex项目中能否添加aswing的组件
Yes, of course, AsWing components even can works with flex components together. see this http://www.aswing.org/?p=166
Thank you ,iiley,I have addChild aswing components to flex uicomponens
demo:
我点击mybtn1时,aswing的组件button1被添加到了panel上,并显示出来了,这时我点击mybtn2 ,aswing的组件button2也被添加到了panel上,但是没有显示出来,只有当鼠标离开mybtn2时,aswing的组件button2才显示出来,也就是在flex中调用aswing的组件时,没有实时刷新。这是为什么???????
我的 代码如下:
Sir,could you tell me how can i capture a double-click event in JTable?
and…thanks for you great work.
listen the MouseEvent.DOUBLE_CLICK event.
This is really good stuff, I am familiar with Jframe….. also to let everyone know AsWing A2 is flash7-8 compatible…. Keep up posted.
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?
I’ll say, NO. :)
We’v build many big projects with AsWing, there’s no performance problem.
Hi,
Can I build a Flash Lite 2 application with ASwing A2?
I’m not sure, i’v never build a Flash Lite 2 app, but you can just try. :)
[...] 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 [...]