Replace text injected using TextEvent.INPUT_EVENT

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Replace text injected using TextEvent.INPUT_EVENT

pol2095
This post was updated on .
Hello,

It's possible to change the injected text in desktop but not in mobile

<?xml version="1.0"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"    
	xmlns:s="library://ns.adobe.com/flex/spark"
	addedToStage="ats(event)">
	
	<fx:Script>
		<![CDATA[
			private function ats(event:Event):void
			{
				area.addEventListener(TextEvent.TEXT_INPUT, onInput, true, 0, true);
			}
			private function onInput(event:TextEvent):void
			{
				event.text = "v";
			}
		]]>
	</fx:Script>
	
	<s:TextArea width="300" id="area"/>
</s:Application>

Thanks




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/