flash on 2009-9-30
♥0 |
Line 35 |
Modified 2009-09-30 01:37:30 |
MIT License
archived:2017-03-20 17:53:25
ActionScript3 source code
/**
* Copyright kenta ( http://wonderfl.net/user/kenta )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wbvQ
*/
package {
import flash.display.MovieClip;
import flash.display.Shape;
import flash.display.Graphics;
import flash.events.Event;
import flash.geom.*;
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
var contena:Sprite = new Sprite();
var s:Sprite = new Sprite();
var t:Sprite = new Sprite();
contena.graphics.beginFill(0xFFffFF);
contena.graphics.lineStyle(2);
contena.graphics.drawRect(0, 0, 200, 200);
contena.graphics.endFill();
s.z = 10;
s.graphics.beginFill(0xFF0000);
s.graphics.lineStyle(2);
s.graphics.drawRect(0, 0, 100, 100);
s.graphics.endFill();
t.z = -10;
t.graphics.beginFill(0x00ff00);
t.graphics.lineStyle(2);
t.graphics.drawRect(0, 0, 200, 100);
t.graphics.endFill();
contena.addChild(s);
contena.addChild(t);
addChild(contena);
contena.x=100;
contena.y=100;
//s.x = 100;
//s.y = 100;
//s.rotation = 0;
//s.rotationX =0;
contena.rotationX =150;
}
}
}