flash on 2010-2-25
♥0 |
Line 26 |
Modified 2010-02-25 18:53:06 |
MIT License
archived:2017-03-20 08:58:19
ActionScript3 source code
/**
* Copyright albatrus_jp ( http://wonderfl.net/user/albatrus_jp )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/aUn5
*/
package {
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.text.TextFormat;
import flash.text.TextFormatAlign;
import flash.display.Sprite;
import fl.controls.Button;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.size = 24;
format.bold = true;
format.color = 0x009999;
var btn:Button = new Button();
btn.x =100;
btn.y =100;
btn.width = 200;
btn.height = 100;
btn.label = "ボタンdayo";
btn.useHandCursor = true;
btn.setStyle("textFormat",format);
addChild(btn);
}
}
}