Function: User inputs the word in textarea,enter the key "Enter", the head of next line need display the character "*",
the code can not run normally, and if alert the content of meetingObjective.text,the textarea will display the value it is strange, who can help me? thanks the code below: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script> <![CDATA[ var s:String; function addBullet(event){ if (event.code == 13) { s = meetingObjective.text; meetingObjective.text = s+"*"; //mx.controls.Alert.show(meetingObjective.text); } } ]]> </mx:Script> <mx:HBox width="98%" > <mx:Text text="input:" width="110" textAlign="right" /> <mx:TextArea id="meetingObjective" height="70" width="100%" text="*" borderStyle="inset" maxChars="500" keyDown="addBullet(event)"/> </mx:HBox> </mx:Application> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

