<?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>All I don&#039;t know</title>
	<atom:link href="http://blog.derraab.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.derraab.com</link>
	<description>About Flash™, Flex™, software development and my computer</description>
	<lastBuildDate>Wed, 30 Jun 2010 08:35:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>YouTube about Flash and the HTML5 &lt;video&gt; tag</title>
		<link>http://blog.derraab.com/2010/06/30/youtube-about-flash-and-the-html5-videotag/</link>
		<comments>http://blog.derraab.com/2010/06/30/youtube-about-flash-and-the-html5-videotag/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 08:35:47 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=306</guid>
		<description><![CDATA[Interesting YouTube API Blog post explains why YouTube uses Flash Player for video playback: http://apiblog.youtube.com/2010/06/flash-and-html5-tag.html]]></description>
			<content:encoded><![CDATA[<p>Interesting YouTube API Blog post explains why YouTube uses Flash Player for video playback:</p>
<p><a href="http://apiblog.youtube.com/2010/06/flash-and-html5-tag.html">http://apiblog.youtube.com/2010/06/flash-and-html5-tag.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/06/30/youtube-about-flash-and-the-html5-videotag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Media Framework 1.0</title>
		<link>http://blog.derraab.com/2010/05/28/open-source-media-framework-1-0/</link>
		<comments>http://blog.derraab.com/2010/05/28/open-source-media-framework-1-0/#comments</comments>
		<pubDate>Fri, 28 May 2010 12:30:19 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Librarys]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=289</guid>
		<description><![CDATA[Adobe recently released OSMF version 1.0! Again just some links: OSMF Blog &#8211; Announcing OSMF 1.0! Source ZIP Release Notes PDF ASDocs ZIP]]></description>
			<content:encoded><![CDATA[<p>Adobe recently released OSMF version 1.0! Again just some links:</p>
<p><a href="http://blogs.adobe.com/osmf/2010/05/announcing_osmf_10.html">OSMF Blog &#8211; Announcing OSMF 1.0!</a><br />
<a href="http://download.macromedia.com/pub/opensource/osmf/osmf_source_v1-0.zip">Source ZIP</a><br />
<a href="http://opensource.adobe.com/wiki/download/attachments/34373765/ReleaseNotesv1.0.pdf?version=2">Release Notes PDF</a><br />
<a href="http://download.macromedia.com/pub/opensource/osmf/osmf_asdocs_v1-0.zip">ASDocs ZIP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/05/28/open-source-media-framework-1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Performance Visualizer</title>
		<link>http://blog.derraab.com/2010/05/26/flash-performance-visualizer/</link>
		<comments>http://blog.derraab.com/2010/05/26/flash-performance-visualizer/#comments</comments>
		<pubDate>Wed, 26 May 2010 17:43:48 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=283</guid>
		<description><![CDATA[Mr.doop&#8217;s Hi-ReS! Stats is a must have for every ActionScript developer. Seems to be still no. 1! And I don&#8217;t want to search again&#8230; So here just the links: Mr.doop&#8217;s blog &#124; Hi-ReS! Stats Mr.doop&#8217;s Stats.as @ GitHub]]></description>
			<content:encoded><![CDATA[<p>Mr.doop&#8217;s Hi-ReS! Stats is a must have for every ActionScript developer. Seems to be still no. 1!<br />
And I don&#8217;t want to search again&#8230; So here just the links:</p>
<p><a href="http://mrdoob.com/blog/post/582">Mr.doop&#8217;s blog | Hi-ReS! Stats</a><br />
<a href="http://github.com/mrdoob/stats.as">Mr.doop&#8217;s Stats.as @ GitHub</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/05/26/flash-performance-visualizer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Undocumented XMLUtil class in Adobe Flash CS5?</title>
		<link>http://blog.derraab.com/2010/05/18/undocumented-xmlutil-class-in-adobe-flash-cs5/</link>
		<comments>http://blog.derraab.com/2010/05/18/undocumented-xmlutil-class-in-adobe-flash-cs5/#comments</comments>
		<pubDate>Tue, 18 May 2010 09:39:14 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=273</guid>
		<description><![CDATA[I tried to recompile an older Flash CS 4 project with Flash CS 5 but got this compile time error 1061: Call to a possibly undefined method reuseNodes through a reference with static type Class caused by the usage of &#8230; <a href="http://blog.derraab.com/2010/05/18/undocumented-xmlutil-class-in-adobe-flash-cs5/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I tried to recompile an older Flash CS 4 project with Flash CS 5 but got this compile time error <code>1061: Call to a possibly undefined method reuseNodes through a reference with static type Class</code> caused by the usage of one of my utility classes:</p>
<p><strong>This didn&#8217;t work</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> de.<span style="color: #006600;">superclass</span>.<span style="color: #006600;">util</span>.<span style="color: #006600;">XMLUtil</span>;
...
<span style="color: #006600;">XMLUtil</span>.<span style="color: #006600;">someMethod</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p><strong>This still works</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">...<span style="color: #006600;">de</span>.<span style="color: #006600;">superclass</span>.<span style="color: #006600;">util</span>.<span style="color: #006600;">XMLUtil</span>.<span style="color: #006600;">someMethod</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>So there was no error in my class because it&#8217;s still usable when I use the full class package but it didn&#8217;t work when I just import it with the import statement.</p>
<p>After some research I found an undocumented <code>XMLUtil</code> class which avoids the correct access to my <code>de.superclass.util.XMLUtil</code> class.</p>
<p>This class doesn&#8217;t exist in Flash CS 4 but is available in Flash CS 5. Simply create a new FLA in Flash CS 5 an run this code on timeline</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span> describeType<span style="color: #66cc66;">&#40;</span> XMLUtil <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>and you&#8217;ll get this result:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;type</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">base</span>=<span style="color: #ff0000;">&quot;Class&quot;</span> <span style="color: #000066;">isDynamic</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">isFinal</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">isStatic</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extendsClass</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extendsClass</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Object&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrYMin&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrXMax&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrYMax&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrObj0&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrObj1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrX0&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrY0&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrX1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagGravity&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrY1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagCollideSpace&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrType&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagRigidBody&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrPin&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagRect&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSlider&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagJoint&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrLength&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagSpring&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrStrength&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagFrames&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrDamping&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagFrame&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSimSpeed&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagFluid&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrAxis&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagEmitter&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrAsset&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagOrigin&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSpring&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagKeyframes&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSpringStrength&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagKey&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSpringDamping&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagView&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kTagGeom&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrIndex&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrCollideType&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrCellSize&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSpringValue&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrCollideSpace&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrRowDimen&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrDensity&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrColDimen&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrPosX&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrTimeStep&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrPosY&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrTime&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrAngle&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrColor&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrVelX&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrStrokeColor&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrVelY&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrAlpha&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrVelA&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrFPS&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrCOR&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrSprings&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrCOF&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrLimits&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrFixed&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrMinAngle&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrID&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrDBlend&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrPoseStrength&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrPoseDamping&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrBodyDamping&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrX&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrY&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;constant</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kAttrXMin&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;accessor</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;prototype&quot;</span> <span style="color: #000066;">access</span>=<span style="color: #ff0000;">&quot;readonly&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;method</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;nodeHasAttribute&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">returnType</span>=<span style="color: #ff0000;">&quot;Boolean&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XML&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/method<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;method</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;getIntAttribute&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">returnType</span>=<span style="color: #ff0000;">&quot;int&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XML&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;int&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/method<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;method</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;getNumberAttribute&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">returnType</span>=<span style="color: #ff0000;">&quot;Number&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XML&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Number&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/method<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;method</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;getBoolAttribute&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">returnType</span>=<span style="color: #ff0000;">&quot;Boolean&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XML&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Boolean&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/method<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;method</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;getStringAttribute&quot;</span> <span style="color: #000066;">declaredBy</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span> <span style="color: #000066;">returnType</span>=<span style="color: #ff0000;">&quot;String&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XML&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;false&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;parameter</span> <span style="color: #000066;">index</span>=<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">optional</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/method<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;factory</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;XMLUtil&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;extendsClass</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Object&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/factory<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>So I had to rename my class to <code>de.superclass.util.XMLUtil<b>s</b></code>.</p>
<p><b>You might run into the same problems when using <code>mx.utils.XMLUtil</code> (Flex Framework) or <code>com.adobe.utils.XMLUtil</code> (AS3CoreLib) but I didn&#8217;t test it!</b></p>
<p><strong>UPDATE:</strong><br />
I found <code>XMLUtil</code> classes in<br />
<em>Adobe Flash CS5/Common/Configuration/ActionScript 3.0/libs/ik.swc</em> and<br />
<em>Adobe Flash CS5/Common/Configuration/ActionScript 3.0/libs/PffLib.swc</em></p>
<p><b>Removing the <em>$(AppConfig)/ActionScript 3.0/libs</em> directory within the ActionScript export settings avoids the problem. But I have no time to test if this directory is necessary. If you run into problems please leave me a comment!</b></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/05/18/undocumented-xmlutil-class-in-adobe-flash-cs5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Aligning Flash TextField instances visually correct</title>
		<link>http://blog.derraab.com/2010/05/16/aligning-flash-textfield-instances-visually-correct/</link>
		<comments>http://blog.derraab.com/2010/05/16/aligning-flash-textfield-instances-visually-correct/#comments</comments>
		<pubDate>Sun, 16 May 2010 01:44:12 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=270</guid>
		<description><![CDATA[I was looking for an easy way to align TextField instances with different font sizes visually correct. I really thought this wouldn&#8217;t take much time but it turned out to become really frustrating. So think about a simple scenario: Try &#8230; <a href="http://blog.derraab.com/2010/05/16/aligning-flash-textfield-instances-visually-correct/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was looking for an easy way to align <code>TextField</code> instances with different font sizes visually correct. I really thought this wouldn&#8217;t take much time but it turned out to become really frustrating.</p>
<p>So think about a simple scenario: Try to align two <code>TextField</code> instances with different font sizes side by side. If you just set the <code>TextField.y</code> property to the same value you will recognise that different font sizes have different top margins. Well, you might fix that by hand if you have a static layout but what if you don&#8217;t know what kind of Text will be displayed? In my case I needed to align text always on top with the same margin regardless of the headline font size.</p>
<p>I tried hard to get this done by using different methods provided by the <code>TextField</code> class. Then I tried to work with the <code>TextLineMetrics</code> class as well. Nothing worked properly for me. I needed to work with CSS formatted HTML text so I was looking for a <code>margin-top</code> style or something similar. Not available. Hm.</p>
<p>Then I remembered my solution about finding the alpha bounds within external loaded PNG files and used that. Well, the main downside is that I need to create a <code>BitmapData</code> instance to determine the exact text bounds but otherwise it worked out very well.</p>
<p>It all comes down to two simple methods that will slip into my library. At the end you will receive a rectangle representing the bounds on the <code>TextField</code> instance.</p>
<p>If you know a different way to obtain the same exact result please leave me a comment!</p>
<p>Here&#8217;s my solution:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> getDisplayObjectAlphaBounds<span style="color: #66cc66;">&#40;</span> displayObject : DisplayObject, <span style="color: #0066CC;">smoothing</span> : <span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">true</span> <span style="color: #66cc66;">&#41;</span> : Rectangle
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> bitmapData : BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span> displayObject.<span style="color: #0066CC;">width</span>, displayObject.<span style="color: #0066CC;">height</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
		bitmapData.<span style="color: #006600;">draw</span><span style="color: #66cc66;">&#40;</span> displayObject, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #0066CC;">smoothing</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> alphaBounds : Rectangle = bitmapData.<span style="color: #006600;">getColorBoundsRect</span><span style="color: #66cc66;">&#40;</span> 0x01000000, 0x01000000 <span style="color: #66cc66;">&#41;</span>;
&nbsp;
	bitmapData.<span style="color: #006600;">dispose</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #b1b100;">return</span> alphaBounds;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getTextFieldTextBounds<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textField</span> : <span style="color: #0066CC;">TextField</span>, <span style="color: #0066CC;">smoothing</span> : <span style="color: #0066CC;">Boolean</span> = <span style="color: #000000; font-weight: bold;">true</span> <span style="color: #66cc66;">&#41;</span> : Rectangle
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">background</span> : <span style="color: #0066CC;">Boolean</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">background</span>;
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">backgroundColor</span> : uint = <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">backgroundColor</span>;
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">border</span> : <span style="color: #0066CC;">Boolean</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">border</span>;
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">borderColor</span> : uint = <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">borderColor</span>;
	<span style="color: #000000; font-weight: bold;">var</span> opaqueBackground : <span style="color: #0066CC;">Object</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #006600;">opaqueBackground</span>;
&nbsp;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">background</span> = <span style="color: #000000; font-weight: bold;">false</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">border</span> = <span style="color: #000000; font-weight: bold;">false</span>;
	opaqueBackground = <span style="color: #000000; font-weight: bold;">null</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> textBounds : Rectangle = getDisplayObjectAlphaBounds<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textField</span>, <span style="color: #0066CC;">smoothing</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">background</span> = <span style="color: #0066CC;">background</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">backgroundColor</span> = <span style="color: #0066CC;">backgroundColor</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">border</span> = <span style="color: #0066CC;">border</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">borderColor</span> = <span style="color: #0066CC;">borderColor</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">opaqueBackground</span> = opaqueBackground;
&nbsp;
	<span style="color: #b1b100;">return</span> textBounds;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textFormat</span> : <span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">align</span> = TextFormatAlign.<span style="color: #006600;">CENTER</span>;
	<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">color</span> = 0x0000FF;
	<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">font</span> = <span style="color: #ff0000;">&quot;Arial&quot;</span>;
	<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">30</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textField</span> : <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>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">border</span> = <span style="color: #000000; font-weight: bold;">true</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">borderColor</span> = 0x0000FF;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">background</span> = <span style="color: #000000; font-weight: bold;">true</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">backgroundColor</span> = 0x000022;
	<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">defaultTextFormat</span> = <span style="color: #0066CC;">textFormat</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;">260</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>This text<span style="color: #000099; font-weight: bold;">\n</span>can be<span style="color: #000099; font-weight: bold;">\n</span>aligned<span style="color: #000099; font-weight: bold;">\n</span>properly!&quot;</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">300</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">x</span> = <span style="color: #cc66cc;">30</span>;
	<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">30</span>;
&nbsp;
addChild<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textField</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Get bounds</span>
<span style="color: #000000; font-weight: bold;">var</span> textBounds : Rectangle = getTextFieldTextBounds<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textField</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Draw bounds</span>
<span style="color: #000000; font-weight: bold;">var</span> shape : Shape = <span style="color: #000000; font-weight: bold;">new</span> Shape<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	shape.<span style="color: #006600;">x</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #006600;">x</span>;
	shape.<span style="color: #006600;">y</span> = <span style="color: #0066CC;">textField</span>.<span style="color: #006600;">y</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> g : Graphics = shape.<span style="color: #006600;">graphics</span>;
	g.<span style="color: #0066CC;">lineStyle</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">1</span>, 0x00FFFF <span style="color: #66cc66;">&#41;</span>;
	g.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span> textBounds.<span style="color: #006600;">x</span>, textBounds.<span style="color: #006600;">y</span>, textBounds.<span style="color: #0066CC;">width</span>, textBounds.<span style="color: #0066CC;">height</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
addChild<span style="color: #66cc66;">&#40;</span> shape <span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/05/16/aligning-flash-textfield-instances-visually-correct/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setting up my new MacBook Pro</title>
		<link>http://blog.derraab.com/2010/04/30/setting-up-my-new-macbook-pro/</link>
		<comments>http://blog.derraab.com/2010/04/30/setting-up-my-new-macbook-pro/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 21:35:16 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=261</guid>
		<description><![CDATA[A few days ago my new my new antiglare 15&#8243; i7 MacBook Pro arrived and I decided to manually setup this new system. Rethinking everything is always a good opportunity to leave some old stuff behind. Before I bought my &#8230; <a href="http://blog.derraab.com/2010/04/30/setting-up-my-new-macbook-pro/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few days ago my new my new antiglare 15&#8243; i7 MacBook Pro arrived and I decided to manually setup this new system. Rethinking everything is always a good opportunity to leave some old stuff behind.</p>
<p>Before I bought my first MacBook Pro in late 2006 I owned PCs only and so I still used Thunderbird on my Mac until now. But it wasn&#8217;t that easy to bring all my old local stored mails into Mail. It worked quite well but for some reasons it didn&#8217;t work for every folder. For example one folder contained 2364 emails but Mail was only importing 653. I tried it several times but I had to use my IMAP account to transfer these mails into this new environment. That took really a little while for several folders.</p>
<p>Maybe it&#8217;s not necessary but since my new user account uses the same username and password I had no problem to simply copy &#038; paste data for Adium, Address Book, iCal, iPhoto, iTunes and Skype.</p>
<p>I also decided to upgrade or switch to newer software like OmniFocus, Parallels Desktop 5, Transmit and Versions. And of course a fresh version of FDT Enterprise is still my favorite application.</p>
<p>Luckily Adobe shipped the new Creative Suite 5 today and so hopefully there&#8217;s no need to install CS 4 products anymore.</p>
<p>My last step is refining my directory structure and then I&#8217;m looking forward to work with this machine for the next 3 or 4 years with hardware video encoding and 8 GB RAM.</p>
<p>But the biggest question is: Which sticker will I use to hide the big apple?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/04/30/setting-up-my-new-macbook-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript vs. Objective C</title>
		<link>http://blog.derraab.com/2010/04/27/actionscript-vs-objective-c/</link>
		<comments>http://blog.derraab.com/2010/04/27/actionscript-vs-objective-c/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:50:14 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=258</guid>
		<description><![CDATA[If you are interested in Objective C programming this article a good start to explore: Cocoa Chronicles #1: ActionScript vs. Objective C]]></description>
			<content:encoded><![CDATA[<p>If you are interested in Objective C programming this article a good start to explore:<br />
<a href="http://jessewarden.com/2010/04/cocoa-chronicles-1-actionscript-vs-objective-c.html">Cocoa Chronicles #1: ActionScript vs. Objective C</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/04/27/actionscript-vs-objective-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFK10 &#8211; Flashforum conference notes</title>
		<link>http://blog.derraab.com/2010/04/20/ffk10-flashforum-conference-notes/</link>
		<comments>http://blog.derraab.com/2010/04/20/ffk10-flashforum-conference-notes/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 12:59:10 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[How To...]]></category>
		<category><![CDATA[Librarys]]></category>
		<category><![CDATA[Utils]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=207</guid>
		<description><![CDATA[Every year I spend two days sitting in the audience of the Flashforum conference (FFK) listening to great speakers and getting impressed by their experiments and thoughts. It&#8217;s also a good way to renew some of the basic knowledge in &#8230; <a href="http://blog.derraab.com/2010/04/20/ffk10-flashforum-conference-notes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Every year I spend two days sitting in the audience of the Flashforum conference (FFK) listening to great speakers and getting impressed by their experiments and thoughts. It&#8217;s also a good way to renew some of the basic knowledge in Flash development and of course to meet some friends in the Flash scene.</p>
<p>So this are most of my notes:</p>
<p><strong>Flash / Flex development:</strong></p>
<ul>
<li>
Jessee Freemans <a href="http://flaremulator.flashartofwar.com/">Flash Augmented Reality Debug Tool</a> provides an easy way to start with augmented reality development.
</li>
<li>
Use stunning <a href="http://www.hypeframework.org/">Hype-Framework</a> effects.
</li>
<li>
Dive into dynamic sound generation with André Michelles <a href="http://files.andre-michelle.com/AudioSandbox.zip">Audio-Sandbox</a>.
</li>
<li>
Have a look at the <a href="http://pushbuttonengine.com/">PushButton-Engine</a> for component based development.
</li>
<li>
Remember that Flex 4 includes a lot of performance features! It&#8217;s highly recommended to switch as soon as possible. For example the Embed-tag reduces PNG file size and lots of improvements are made within the Flex components.
</li>
<li>
Watch the Adobe TV video preview: <a href="http://tv.adobe.com/watch/max-2009-develop/preview-flex-for-mobile-devices">Flex for mobile devices</a>
</li>
<li>
See Christian Cantrell&#8217;s blogpost <a href="http://blogs.adobe.com/cantrell/archives/2010/04/one_application_five_screens.html">One Application , Five Screens (Including the iPad)</a>
</li>
<li>
Great tip: <a href="http://www.bytearray.org/?p=290">ByteArray.org &#8211; Why cacheAsBitmap is bad</a>
</li>
<li>
Adobe&#8217;s <a href="http://help.adobe.com/en_US/as3/mobile/index.html">Mobile Development Guide for the Flash platform</a> (applies also to desktop applications) contains performance tips like:</p>
<ul>
<li>
<code>DisplayObject.width / height</code> should be divisible by 2 as often as possible
</li>
<li>
Try to avoid <code>Event</code>s and / or stop propagation as soon as possible
</li>
<li>
Set <code>DisplayObject.mouseEnabled=false</code> if possible
</li>
<li>
Stop <code>MovieClip</code> animations when removed from stage
</li>
<li>
Use <code>TextField.opaqueBackground=true</code> if possible
</li>
<li>
Use <code>final</code> statement (<code>final class ClassName {}</code>)
</li>
<li>
Use <code>BitmapData.get / setVector()</code>
</ul>
</li>
</ul>
<p><strong>HTML / JavaScript basics:</strong></p>
<ul>
<li>
Use &#8220;Sprites&#8221; with HTML / CSS (load only one bitmap graphic containing all the asset images for your page and show only the particular relevant parts) and preload next page assets using AJAX while your current page is idle.
</li>
<li>
Since usually only 2 simultaneous domain http requests are supported by browsers it&#8217;s a good practice to distribute contents from various ip addresses (use asset-servers for example).
</li>
<li>
Load only visible parts of your site using JavaScript viewport events.
</li>
</ul>
<p><strong>Useful workflow utils:</strong></p>
<ul>
<li>
<a href="http://www.subversion-server.com/">Subversion Server</a> &#8211; Hosting
</li>
<li>
<a href="http://www.omnigroup.com/products/omnifocus/">Omni Focus</a> &#8211; Personal task management
</li>
<li>
<a href="http://en.wikipedia.org/wiki/Planning_poker">Planning Poker</a> &#8211; Consensus-based estimation technique for estimating
</li>
<li>
<a href="http://www.pivotaltracker.com/">Pivotal Tracker</a> &#8211; Agile project management tool
</li>
<li>
<a href="http://www.ideo.com/news/method-card-iphone-application/">IDEO Method Cards</a> &#8211; iPhone application
</li>
<li>
<a href="http://basecamphq.com/">Basecamp</a> &#8211; Get projects done
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/04/20/ffk10-flashforum-conference-notes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Embed fonts with Adobe Flash IDE</title>
		<link>http://blog.derraab.com/2010/04/10/embed-fonts-with-adobe-flash-ide/</link>
		<comments>http://blog.derraab.com/2010/04/10/embed-fonts-with-adobe-flash-ide/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 23:05:38 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[How To...]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=161</guid>
		<description><![CDATA[Almost every Flash project needs some embedded fonts and it is a good practice to compile the fonts into a separate SWF file. So here is a simple way to create a file that contains only embedded fonts. The SWF &#8230; <a href="http://blog.derraab.com/2010/04/10/embed-fonts-with-adobe-flash-ide/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Almost every Flash project needs some embedded fonts and it is a good practice to compile the fonts into a separate SWF file. So here is a simple way to create a file that contains only embedded fonts. The SWF file will also show the exact internal font names:</p>
<ol>
<li>Copy and paste the ActionScript code below into the first keyframe of your timeline.</li>
<li>Create new fonts in flash library and export them for ActionScript.<br />
A good tutorial can be found <a href="http://www.adobe.com/devnet/flash/quickstart/embedding_fonts/">here</a>.</li>
<li>Run ONLY the code for step 2 to evalute and trace the exact font names.</li>
<li>Assign the exact font names to the actual library symbols and their export class name.</li>
<li>Run ONLY the code for step 4 to export the swf.</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">Security.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// Step 1: Create new fonts in flash library</span>
<span style="color: #808080; font-style: italic;">//         and select &quot;Export for ActionScript&quot;.</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">// Step 2: Run ONLY this code to evalute and trace the exact font names.</span>
<span style="color: #808080; font-style: italic;">/**/</span>
<span style="color: #000000; font-weight: bold;">var</span> embeddedFonts : <span style="color: #0066CC;">Array</span> = <span style="color: #0066CC;">Font</span>.<span style="color: #006600;">enumerateFonts</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">false</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> c : uint = embeddedFonts.<span style="color: #0066CC;">length</span>;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> i : uint = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> c; i++ <span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">font</span> : <span style="color: #0066CC;">Font</span> = embeddedFonts<span style="color: #66cc66;">&#91;</span> i <span style="color: #66cc66;">&#93;</span> as <span style="color: #0066CC;">Font</span>;
	<span style="color: #000000; font-weight: bold;">var</span> className : <span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontName</span>.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> lowerFontStyle : <span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontStyle</span>.<span style="color: #0066CC;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> lowerFontStyle.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">!</span>= -<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> className += <span style="color: #ff0000;">&quot;Bold&quot;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> lowerFontStyle.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;italic&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">!</span>= -<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> className += <span style="color: #ff0000;">&quot;Italic&quot;</span>;
&nbsp;
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span> className <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/**/</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// Step 3: Assign the exact font names to the actual</span>
<span style="color: #808080; font-style: italic;">//         library symbols and their export class name.</span>
&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">// Step 4: Export the swf using ONLY this code. </span>
<span style="color: #808080; font-style: italic;">/**/</span>
<span style="color: #000000; font-weight: bold;">var</span> posX : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">10</span>;
<span style="color: #000000; font-weight: bold;">var</span> posY : <span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">10</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> embeddedFonts : <span style="color: #0066CC;">Array</span> = <span style="color: #0066CC;">Font</span>.<span style="color: #006600;">enumerateFonts</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">false</span> <span style="color: #66cc66;">&#41;</span>;
	embeddedFonts.<span style="color: #0066CC;">sortOn</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;fontName&quot;</span>, <span style="color: #0066CC;">Array</span>.<span style="color: #006600;">CASEINSENSITIVE</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> c : uint = embeddedFonts.<span style="color: #0066CC;">length</span>;
<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> i : uint = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> c; i++ <span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">font</span> : <span style="color: #0066CC;">Font</span> = embeddedFonts<span style="color: #66cc66;">&#91;</span> i <span style="color: #66cc66;">&#93;</span> as <span style="color: #0066CC;">Font</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> lowerFontStyle : <span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontStyle</span>.<span style="color: #0066CC;">toLowerCase</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textFormat</span> : <span style="color: #0066CC;">TextFormat</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextFormat</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">bold</span> = <span style="color: #66cc66;">&#40;</span> lowerFontStyle.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">!</span>= -<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">italic</span> = <span style="color: #66cc66;">&#40;</span> lowerFontStyle.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;italic&quot;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">!</span>= -<span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">font</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontName</span>;
		<span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">size</span> = <span style="color: #cc66cc;">14</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> className : <span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontName</span>.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot; &quot;</span> <span style="color: #66cc66;">&#41;</span>.<span style="color: #0066CC;">join</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">bold</span> <span style="color: #66cc66;">&#41;</span> className += <span style="color: #ff0000;">&quot;Bold&quot;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">italic</span> <span style="color: #66cc66;">&#41;</span> className += <span style="color: #ff0000;">&quot;Italic&quot;</span>;
&nbsp;
	<span style="color: #0066CC;">Font</span>.<span style="color: #006600;">registerFont</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">Class</span><span style="color: #66cc66;">&#40;</span> getDefinitionByName<span style="color: #66cc66;">&#40;</span> className <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> boldItalic : <span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;&quot;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">bold</span> <span style="color: #66cc66;">&amp;&amp;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">italic</span> <span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		boldItalic = <span style="color: #ff0000;">&quot;( needs to be BOLD and ITALIC ! )&quot;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">bold</span> <span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		boldItalic = <span style="color: #ff0000;">&quot;( needs to be BOLD ! )&quot;</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textFormat</span>.<span style="color: #0066CC;">italic</span> <span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		boldItalic = <span style="color: #ff0000;">&quot;( needs to be ITALIC ! )&quot;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">textField</span> : <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>;
		<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
		<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">defaultTextFormat</span> = <span style="color: #0066CC;">textFormat</span>;
		<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">embedFonts</span> = <span style="color: #000000; font-weight: bold;">true</span>;
		<span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">text</span> = <span style="color: #0066CC;">font</span>.<span style="color: #006600;">fontName</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span> + boldItalic;
		<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">x</span> = posX;
		<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">y</span> = posY;
&nbsp;
	posY += <span style="color: #0066CC;">textField</span>.<span style="color: #0066CC;">height</span> + <span style="color: #cc66cc;">5</span>;
&nbsp;
	addChild<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">textField</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #808080; font-style: italic;">/**/</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/04/10/embed-fonts-with-adobe-flash-ide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player Security</title>
		<link>http://blog.derraab.com/2010/03/30/flash-player-security/</link>
		<comments>http://blog.derraab.com/2010/03/30/flash-player-security/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 07:53:31 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash in Browser]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=158</guid>
		<description><![CDATA[Just some helpful links: Understanding the security changes in Flash Player 10 Policy file changes in Flash Player 9 and Flash Player 10]]></description>
			<content:encoded><![CDATA[<p>Just some helpful links:<br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes.html">Understanding the security changes in Flash Player 10</a><br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html">Policy file changes in Flash Player 9 and Flash Player 10</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/03/30/flash-player-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
