Hello jsdo.it!
jsdo.itで表示してみる
http://jsdo.it/demouth/8MsM
♥0 |
Line 22 |
Modified 2010-07-02 00:32:37 |
MIT License
archived:2017-03-20 17:09:12
ActionScript3 source code
/**
* Copyright demouth ( http://wonderfl.net/user/demouth )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/3tGH
*/
//jsdo.itで表示してみる
//http://jsdo.it/demouth/8MsM
package {
import flash.text.TextField;
import flash.display.Sprite;
import net.wonderfl.widget.Wanco;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
init();
}
private function init():void
{
var w:Wanco = new Wanco()
this.addChild(w);
w.x = this.stage.stageWidth * 0.5;
w.y = this.stage.stageHeight * 0.8;
w.scaleX = w.scaleY = 4;
var t:TextField = new TextField();
t.htmlText = "<font size='80'>Hello jsdo.it!</font>";
this.addChild(t);
t.width = this.stage.stageWidth;
}
}
}