<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>masterlevel &#187; htmltext</title>
	<atom:link href="http://www.masterlevel.de/blog/tag/htmltext/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masterlevel.de/blog</link>
	<description>Manche Sachen vergißt man, weil man sie nicht oft braucht - deshalb stehen sie hier...</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:58:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>&#8220;asfunction&#8221; in AS3</title>
		<link>http://www.masterlevel.de/blog/2010/02/15/asfunction-in-as3/</link>
		<comments>http://www.masterlevel.de/blog/2010/02/15/asfunction-in-as3/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:00:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Beginner]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[asfunction]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[htmltext]]></category>

		<guid isPermaLink="false">http://www.masterlevel.de/blog/?p=82</guid>
		<description><![CDATA[Die Methodik mittels &#8220;asfunction&#8221; aus einem Textfeld eine interne Funktion aufzurufen, exisitiert in AS3 nicht mehr. Das funktioniert nun so: &#160; var txtF:TextField = new TextField&#40;&#41;; txtF.autoSize = TextFieldAutoSize.LEFT; txtF.htmlText = 'Ein Testlink, klick mich &#60;a href=&#34;event:1 2 3 4 ...&#34;&#62;&#60;u&#62;jetzt&#60;/u&#62;&#60;/a&#62;!'; addChild&#40;txtF&#41;; &#160; txtF.addEventListener&#40;TextEvent.LINK,myLinkFunction&#41;; &#160; function myLinkFunction&#40;e:TextEvent&#41;:void &#123; trace&#40;e.text&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>Die Methodik mittels &#8220;asfunction&#8221; aus einem Textfeld eine interne Funktion aufzurufen, exisitiert in AS3 nicht mehr. Das funktioniert nun so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> txtF:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
txtF.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
txtF.<span style="color: #0066CC;">htmlText</span> = <span style="color: #ff0000;">'Ein Testlink, klick mich &lt;a href=&quot;event:1 2 3 4 ...&quot;&gt;&lt;u&gt;jetzt&lt;/u&gt;&lt;/a&gt;!'</span>;
addChild<span style="color: #66cc66;">&#40;</span>txtF<span style="color: #66cc66;">&#41;</span>;
&nbsp;
txtF.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>TextEvent.<span style="color: #006600;">LINK</span>,myLinkFunction<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> myLinkFunction<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:TextEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span>; 
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.masterlevel.de/blog/2010/02/15/asfunction-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

