AsWing 3D experiment
iiley July 13th, 2009
From AWSSOFT’s Droower comments, i saw Srdjan has done some transform of AsWing components. There is a Rotated/Skewed text with scrollbar, so i guess maybe we can made 3D effects for user interface by just AsWing components, with some test, i first just rotate a JList with JFrame, sadly the text will not be shown when rotated(this should be a well-known flash feature), see this rotation. I guess Srdjan cached his text into a Bitmap, so his Rotated/Skewed text displays well.
Then, i tested the new properties from FP10, rotationX/Y/Z, it’s exciting that FP10 renders text very well in 3D transform. See this rotation_y. It’s almost a realy 3D user interface, currently everything is fine except the Drag function of JFrameTitleBar, maybe the drag() function doesn’t works with 3D transform.
Here’s the source code snip(it’s simple):
AsWingManager.initAsStandard(this);
var sprite:Sprite = new Sprite();
addChild(sprite);
var jf:JFrame = new JFrame(sprite, "Test JFrame");
var jlist:JList = new JList();
var model:VectorListModel = new VectorListModel();
for(var i:int=0; i<100; i++){
model.append(i + " uitem");
}
jlist.setModel(model);
jf.setContentPane(new JScrollPane(jlist));
jf.setSizeWH(300, 160);
jf.show();
sprite.x = sprite.y = 150;
sprite.rotation = -40;




