flash on 2012-5-24
import flash.display.MovieClip;
import com.actionsnippet.qbox.*;
import flash.events.Event;
♥0 |
Line 24 |
Modified 2012-05-24 14:05:45 |
MIT License
archived:2017-03-20 04:46:05
ActionScript3 source code
/**
* Copyright figma000 ( http://wonderfl.net/user/figma000 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/50yR
*/
package {
import flash.display.*;
import flash.text.TextField;
import com.actionsnippet.qbox.*;
[SWF(width=1000, height=1000, backgroundColor=0x000000)]
//import flash.display.MovieClip;
//import com.actionsnippet.qbox.*;
//import flash.events.Event;
public class FlashTest extends MovieClip {
private var sim:QuickBox2D;
private var boxA:QuickObject;
public var text_field:TextField = new TextField();
public function FlashTest() {
sim=new QuickBox2D(this);
sim.createStageWalls();
boxA=sim.addBox({x:1.5,y:1.5,width:3,height:3,fillColor:0xff0000});
stage.addChild(text_field);
text_field.border = true; // 枠を表示する
text_field.x = 130; // x 座標
text_field.y = 100; // y 座標
text_field.width = 200; // 幅
text_field.height = 20; // 高さ
sim.start();
sim.mouseDrag();
}
}
}