<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" viewSourceURL="srcview/index.html" xmlns:controls="jp.co.genephics.aquarius.controls.*" width="450" height="300" backgroundColor="0xFFFFFF" creationComplete="_creationCompleteHandler();" > <mx:Script> <![CDATA[ private function _creationCompleteHandler():void { systemManager.addEventListener(KeyboardEvent.KEY_DOWN, _systemManager_keyDownHandler); } private function _systemManager_keyDownHandler(event:KeyboardEvent):void { if (event.keyCode == Keyboard.INSERT) event.preventDefault(); } ]]> </mx:Script> <controls:TextInputEditChar width="400" textChange="_textChangeHandler(event)" /> <mx:TextArea width="400" height="200" editable="false" id="txaTrace" /> <mx:Script> <![CDATA[ import mx.utils.ObjectUtil; import jp.co.genephics.aquarius.events.TextInputEvent; private function _textChangeHandler(event:TextInputEvent):void { txaTrace.text = event.toString(); } ]]> </mx:Script> </mx:Application>