e.g
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.apache.org/royale/spark"
xmlns:mx="library://ns.apache.org/royale/mx"
paddingBottom="0" paddingTop="0" paddingLeft="0"
paddingRight="0"
height="100%" width="100%"
>
<fx:Script>
</fx:Script>
<s:Panel title="TextArea Sample" width="100%" height="100%">
<s:layout>
<s:HorizontalLayout paddingLeft="10" paddingRight="10"
paddingTop="10" paddingBottom="10"/>
</s:layout>
<s:VGroup>
<s:Label text="Text:"/>
<s:TextArea id="txt" width="300" height="70"
color="0x323232" horizontalCenter="0" verticalCenter="0" restrict="a-z 1-9"
text="Text Area"/>
</s:VGroup>
<s:RichEditableText id="richEdTxt" widthInChars="20"
heightInLines="10"
backgroundColor="0xCCCCCC" text="Hello world!">
</s:RichEditableText>
</s:Panel>
</s:Application>
6.12.2019 22:48 tarihinde Serkan Taş yazdı:
I am checking the samples RichEditableText and TextArea in royale but
non of them looks like working in my case. If the text value is set
through the "textChanged" event, than it is not handled any where, at
least in my case.
6.12.2019 22:39 tarihinde Alex Harui yazdı:
The event mechanism is essentially the W3C DOM Events spec and same
as Flex. The only known difference that comes to mind right now is
that stopImmediatePropagation in Royale also currently stops
execution of the handler, but that might change some day (soon).
For your sample source, since bubbling is not specified, the
listeners need to be attached to the target or, if the dispatcher is
part of the DOM can be captured by parents.
-Alex
*From: *Serkan Taş <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Friday, December 6, 2019 at 11:32 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Event handling
Hi,
Where can I get information about event handling mechanism in royale ?
e.g : dispatchEvent(new Event("textChanged")); needs to be handled in
where ?
Thanks,
Serkan