flash on 2014-11-15
♥0 |
Line 24 |
Modified 2014-11-15 15:35:29 |
MIT License
archived:2017-03-20 03:17:47
ActionScript3 source code
/**
* Copyright tepe ( http://wonderfl.net/user/tepe )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/wOPV
*/
package {
import flash.display.*;
import flash.events.*;
import flash.text.*;
public class FlashTest extends Sprite {
private var tf1:TextField = new TextField();
private var tf2:TextField = new TextField();
private var list:Array;
public function FlashTest() {
// write as3 code here..
addChild(tf1);
tf1.text = "test";
tf1.border = true;
tf1.type = "input";
tf1.addEventListener(Event.CHANGE,onChange);
addChild(tf2);
tf2.border = true;
tf2.x = 200;
}
private function onChange(e:Event):void{
//tf2.text = tf1.text;
var str:String = tf2.text;
//漢字、ひらがな、カタカナ、数字、記号、アルファベット毎に分割してリスト化
list = new Array();
}
}
}