flash on 2009-8-6
♥0 |
Line 16 |
Modified 2009-08-06 10:20:14 |
MIT License
archived:2017-03-30 09:45:34
ActionScript3 source code
/**
* Copyright hacker_9p8x8mco ( http://wonderfl.net/user/hacker_9p8x8mco )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/vAUm
*/
package {
import flash.display.Sprite;
import flash.text.TextField;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var txt:TextField = new TextField;
txt.text = "あいうえお";
var repl:TextField = new TextField;
repl.text = txt.text.replace(/あいう/,"かきく");
txt.x = 100;
repl.y = 30;
addChild(txt);
addChild(repl);
}
}
}