<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - ActionScriptLangRefV3 - flash/events/TextEvent.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T11:55:04</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#76473" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#70004" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#76473">
		<title>flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#76473</link>
		<description>function showDef(evt:Event):void{&lt;br /&gt;&lt;br /&gt;should be&lt;br /&gt;&lt;br /&gt;function showDef(evt:TextEvent):void{</description>
		<dc:creator>Garsonix</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-11-11T04:32:20</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#70004">
		<title>flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/TextEvent.html#70004</link>
		<description>When I try to retreive data from the TextEvent.text parameter (the last one mentioned below) I get the following COMPILER error:&lt;br /&gt;&lt;br /&gt;&quot;1119: Access of possibly undefined property text through a reference with static type flash.events:Event.&quot;&lt;br /&gt;&lt;br /&gt;Is this a bug??? All the other parameters come through fine, it's just the &quot;text&quot; parameter that seems not to work.&lt;br /&gt;&lt;br /&gt;Here is what Adobe says about the TextEvent constructor:&lt;br /&gt;&lt;br /&gt;-------------------------------------------------&lt;br /&gt;&lt;br /&gt;TextEvent () Constructor&lt;br /&gt;public function TextEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, text:String = &quot;&quot;) &lt;br /&gt;&lt;br /&gt;Language version: ActionScript 3.0 &lt;br /&gt;Player version: Flash Player 9 &lt;br /&gt;&lt;br /&gt;Creates an Event object that contains information about text events. Event objects are passed as parameters to event listeners. &lt;br /&gt;&lt;br /&gt;Parameters &lt;br /&gt;&lt;br /&gt;type:&lt;br /&gt;String -- The type of the event. Event listeners can access this information through the inherited type property. Possible values are: TextEvent.LINK and TextEvent.TEXT_INPUT. &lt;br /&gt;&lt;br /&gt;bubbles:&lt;br /&gt;Boolean (default = false) -- Determines whether the Event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inherited bubbles property. &lt;br /&gt;&lt;br /&gt;cancelable:&lt;br /&gt;Boolean (default = false) -- Determines whether the Event object can be canceled. Event listeners can access this information through the inherited cancelable property. &lt;br /&gt;&lt;br /&gt;text:&lt;br /&gt;String (default = &quot;&quot;) -- One or more characters of text entered by the user. Event listeners can access this information through the text property. &lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Here's how I'm testing this:&lt;br /&gt;&lt;br /&gt;1) create a new CS3 (AS3) FLA file.&lt;br /&gt;&lt;br /&gt;2) drop the &quot;TextArea&quot; component into the library (it will also copy in the UIScrollbar)&lt;br /&gt;&lt;br /&gt;3) copy and paste the following code into the first frame:&lt;br /&gt;&lt;br /&gt;////////////////// BEGIN CODE ///////////////////////////////////&lt;br /&gt;&lt;br /&gt;import fl.controls.TextArea; &lt;br /&gt;&lt;br /&gt;var wordA = &quot;Word A&quot;;&lt;br /&gt;var DefA = &quot;Word A definition.&quot;;&lt;br /&gt;var myText:String = &quot;&lt;u&gt;&lt;a href='event:&quot;+wordA+&quot;|:|&quot;+DefA+&quot;'&gt;Send TextEvent data to output screen&lt;/a&gt;&lt;/u&gt;&quot;; &lt;br /&gt;var myTextArea:TextArea = new TextArea(); &lt;br /&gt;myTextArea.htmlText = myText; &lt;br /&gt;myTextArea.setSize(500, 50); &lt;br /&gt;myTextArea.move(10, 10); &lt;br /&gt;addChild(myTextArea);&lt;br /&gt;&lt;br /&gt;var myTextAreaOutput:TextArea = new TextArea();&lt;br /&gt;myTextAreaOutput.setSize(500, 150); &lt;br /&gt;myTextAreaOutput.move(10, 100); &lt;br /&gt;addChild(myTextAreaOutput);&lt;br /&gt;&lt;br /&gt;myTextArea.addEventListener(TextEvent.LINK, showDef);&lt;br /&gt;&lt;br /&gt;function showDef(evt:Event):void{&lt;br /&gt;myTextAreaOutput.htmlText = evt.toString(); //Works!&lt;br /&gt;//myTextAreaOutput.htmlText = evt.bubbles.toString(); //Works!&lt;br /&gt;//myTextAreaOutput.htmlText = evt.type; //Works!&lt;br /&gt;//myTextAreaOutput.htmlText = evt.eventPhase.toString(); //Works!&lt;br /&gt;//myTextAreaOutput.htmlText = evt.cancelable.toString(); //Works!&lt;br /&gt;&lt;br /&gt;//myTextAreaOutput.htmlText = evt.text.toString(); // Does NOT work&lt;br /&gt;//myTextAreaOutput.htmlText = evt.text; // Does NOT work&lt;br /&gt;}&lt;br /&gt;//////////////////////////////// END CODE ////////////////////////////////////////////////////////&lt;br /&gt;&lt;br /&gt;I could probably do a work-around approach and extract the data I need from evt.toString(), but I'd really like to avoid doing that.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Mark</description>
		<dc:creator>marke</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-07-12T17:47:49</dc:date>
	</item>
	</rdf:RDF>

