flash on 2012-2-17
♥0 |
Line 18 |
Modified 2012-02-17 14:57:19 |
MIT License
archived:2017-03-30 02:59:30
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/igJb
*/
package {
import flash.text.TextField;
import flash.display.Sprite;
import flash.events.*;
public class FlashTest extends Sprite {
private var t1:TextField = new TextField();
public function FlashTest() {
// write as3 code here..
t1.border = true;
t1.type = "input";
t1.multiline= true;
addChild(t1);
t1.addEventListener(FocusEvent.KEY_FOCUS_CHANGE,focusChangeListener);//タブキーによるフォーカス変更をキャンセル
}
private function focusChangeListener(e:FocusEvent):void{
e.preventDefault();
}
}
}