Hi,
<fx:Script>
<![CDATA[
protected var regExp:RegExp = /_[a-z]|[A-Z]/;
protected function onClick(event:MouseEvent):void
{
trace(regExp.test(myText.text))
}
]]>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TextInput id="myText" />
<s:Button x="0" y="34" label="CLICK" click="onClick(event)"/>
I Think This will help u in validating the requirements which u mentioned
previously.
Regards
Dinesh kumar.L
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.