<?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 &#187; Flex</title>
	<atom:link href="http://blog.derraab.com/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.derraab.com</link>
	<description>About Flash™, Flex™, software development and my computer. And JavaScript.</description>
	<lastBuildDate>Sat, 26 Nov 2011 18:31:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>FFK11 &#8211; beyond tellerrand notes</title>
		<link>http://blog.derraab.com/2011/04/08/ffk11-beyond-tellerrand-notes/</link>
		<comments>http://blog.derraab.com/2011/04/08/ffk11-beyond-tellerrand-notes/#comments</comments>
		<pubDate>Fri, 08 Apr 2011 22:03:46 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Conference]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash on iOS]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[iPhone / iPad]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=578</guid>
		<description><![CDATA[I&#8217;m still not sure if &#8220;beyond tellerrand&#8221; is a subtitle or will become the new brand for the one and only Flashforum conference here in germany. Sascha Wolter and Marc Thiele did a great job as always and even I &#8230; <a href="http://blog.derraab.com/2011/04/08/ffk11-beyond-tellerrand-notes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m still not sure if &#8220;<a href="http://ffk11.beyondtellerrand.com/">beyond tellerrand</a>&#8221; is a subtitle or will become the new brand for the one and only <a href="http://www.flashforum.de/">Flashforum</a> conference here in germany. <a href="http://www.wolter.biz/">Sascha Wolter</a> and <a href="http://www.marcthiele.com/">Marc Thiele</a> did a great job as always and even I never went to another conference, FFK seems still to be a special one. Again I was lucky listening to some really cool stuff.</p>
<p>Interestingly most of my <a href="http://blog.derraab.com/2010/04/20/ffk10-flashforum-conference-notes/">last year notes</a> are still up to date, which doesn&#8217;t help if you don&#8217;t keep them in mind. So I think it&#8217;s a good idea to read my own notes from time to time. <img src='http://blog.derraab.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>That&#8217;s what I became aware of this time:</p>
<p><strong>AIR 2.6</strong></p>
<ul>
<li>Lee Brimelow mentioned AIR 2.6 on iOS is faster than on Android!  Yeah.</li>
<li>Adobe is working hard on increasing performance near to native code.</li>
<li>Installing a runtime seems to be annoying for Android users, so Adobe is thinking about compiling for Android like for iOS. Which might bring some extra performance as well.</li>
<li>I asked Lee Brimelow about A<strong>IR on Windows Phone 7</strong> and he said something like &#8220;Adobe is currently not working on that and it would be a lot of work&#8221;. Well, of course Microsoft is not interested having AIR on their system, but it would be a really important platform for all of us. So in my opinion Adobe at least has a small team checking out what&#8217;s possible. What do you think about Windows Phone 7 and AIR support?</li>
</ul>
<p><strong>Flex Builder 4.5</strong></p>
<ul>
<lI>You can get Flex SDK 4.5 already, but there&#8217;s also a way to join the private pre-release program to get early access to Flex Builder 4.5. Just visit <a href="http://www.surveymonkey.com/s/flexprerelease">http://www.surveymonkey.com/s/flexprerelease</a>. They are working on some useful stuff and it might be a good idea to test some of the new features.</li>
<li>Deepa Supramaniam mentioned spark MXML skins have performance issues on mobile devices. That&#8217;s why they created pure ActionScript spark skins for mobile applications. Hopefully, within the private beta Flex SDKs, we&#8217;ll find some great improvements: <a href="http://www.riagora.com/2011/03/preview-of-flex-on-ios/">http://www.riagora.com/2011/03/preview-of-flex-on-ios/</a>.</li>
</ul>
<p><strong>NUI</strong></p>
<ul>
<li><a href="https://www.xing.com/profile/Wolfgang_Henseler">Wolfgang Henseler</a> (<a href="http://vimeo.com/18400281">Talk I missed at FFK10</a>)  opened my mind according <a href="http://en.wikipedia.org/wiki/Natural_user_interface">NUI</a>.</li>
<li>Don&#8217;t think of apps on mobile devices but of services allowing you reaching your goal faster than a website.</li>
<li>Think about providing services, combining them, rethinking them.</li>
<li>Use less design and let objects provide their functionalities (e.g. tap on image to get some options).</li>
<li>My brain is very busy with that NUI thing. E. g. he mentioned the <a href="http://siri.com/">Siri</a> iPhone app. It&#8217;s not about how it looks like (not so cool) but how it works! Combining lots of possibilities with a really easy interface (speech) . He was also talking about &#8220;in body technology&#8221; (sensors and stuff like that.) and <a href="http://www.tedmed.com/">http://www.tedmed.com/</a></li>
<li>After Dennis Ippels Kinect (<a href="http://openkinect.org">OpenKinect</a> / <a href="http://www.primesense.com/">http://www.primesense.com/</a>) introduction I finally know something about the magic behind this device as well.</li>
</ul>
<p><strong>Molehill</strong></p>
<ul>
<li><a href="http://tinyurl.com/molehilldemos">http://tinyurl.com/molehilldemos</a>. What can I say. Molehill performance is stunning (for the web).</li>
<li>And keep in mind that you need to set <code>wmode="direct"</code> within your HTML settings! Otherwise you won&#8217;t get hardware acceleration.</li>
<li>Molehill itself is way to low level for most of us. So we&#8217;ll use 3D frameworks as we did before.</li>
<li><a href="http://away3d.com/">Away 3D </a>currently seems to be the weapon of choice.</li>
<li><a href="http://www.derschmale.com/">David Lenaerts</a> gave us some real insights. Thanks, man!</li>
<li>And if you&#8217;re using FDT you should check out: <a href="http://blog.powerflasher.de/macht-euer-fdt-molehill-ready/">http://blog.powerflasher.de/macht-euer-fdt-molehill-ready/</a> (german).</li>
</ul>
<p><strong>Additional useful links:</strong></p>
<ul>
<li><a href="http://www.appannie.com/">http://www.appannie.com/</a></li>
<li><a href="http://flixel.org/">http://flixel.org/</a></li>
<li><a href="http://pushbuttonengine.com/">http://pushbuttonengine.com/</a> (like last year!;)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2011/04/08/ffk11-beyond-tellerrand-notes/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flex 4 DragManager.doDrag() with .acceptDragDrop() error</title>
		<link>http://blog.derraab.com/2011/01/14/flex-4-dragmanager-dodrag-with-acceptdragdrop-error/</link>
		<comments>http://blog.derraab.com/2011/01/14/flex-4-dragmanager-dodrag-with-acceptdragdrop-error/#comments</comments>
		<pubDate>Fri, 14 Jan 2011 11:06:44 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=461</guid>
		<description><![CDATA[While diving into the Flex 4 spark framework I ran into a problem using mx.managers.DragManager.doDrag() with mx.managers.DragManager.acceptDragDrop(): If you just drag, accept on dragDrop and then drop without moving the mouse you’ll get this error: TypeError: Error #1009: at mx.managers.dragClasses::DragProxy/mouseUpHandler() &#8230; <a href="http://blog.derraab.com/2011/01/14/flex-4-dragmanager-dodrag-with-acceptdragdrop-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>While diving into the Flex 4 spark framework I ran into a problem using</p>
<p><code>mx.managers.DragManager.doDrag()</code> with<br />
<code>mx.managers.DragManager.acceptDragDrop():</code></p>
<p>If you just drag, accept on dragDrop and then drop without moving the mouse you’ll get this error:</p>
<p><strong>TypeError: Error #1009:<br />
at mx.managers.dragClasses::DragProxy/mouseUpHandler()<br />
[E:\dev\4...\mx\managers\dragClasses\DragProxy.as:591]</strong></p>
<p>This is, because <code>DragProxy</code> didn’t receive a <code>MouseEvent</code> yet. So what you can do is manually send one. See this little use case and test for yourself:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
               xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
               xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span>
&nbsp;
            applicationComplete=<span style="color: #ff0000;">&quot;construct()&quot;</span>
            <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span>
            <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">DragSource</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">UIComponent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">managers</span>.<span style="color: #006600;">DragManager</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> construct<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #808080; font-style: italic;">// Get notified whan a global error occurs</span>
                loaderInfo.<span style="color: #006600;">uncaughtErrorEvents</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span> UncaughtErrorEvent.<span style="color: #006600;">UNCAUGHT_ERROR</span>, errorHandler <span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onButtonMouseDown<span style="color: #66cc66;">&#40;</span> event : MouseEvent <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">button</span> : UIComponent = UIComponent<span style="color: #66cc66;">&#40;</span> event.<span style="color: #0066CC;">target</span> <span style="color: #66cc66;">&#41;</span>;
                <span style="color: #000000; font-weight: bold;">var</span> dragSource:DragSource = <span style="color: #000000; font-weight: bold;">new</span> DragSource<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
                DragManager.<span style="color: #006600;">doDrag</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">button</span>, dragSource, event <span style="color: #66cc66;">&#41;</span>;
&nbsp;
                <span style="color: #808080; font-style: italic;">// Accept dragDrop</span>
                <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> acceptDragDropCheckBox.<span style="color: #006600;">selected</span> <span style="color: #66cc66;">&#41;</span>
                <span style="color: #66cc66;">&#123;</span>
                    DragManager.<span style="color: #006600;">acceptDragDrop</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">this</span> <span style="color: #66cc66;">&#41;</span>;
                <span style="color: #66cc66;">&#125;</span>
&nbsp;
                <span style="color: #808080; font-style: italic;">// Avoid error</span>
                <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> avoidErrorCheckBox.<span style="color: #006600;">selected</span> <span style="color: #66cc66;">&#41;</span>
                <span style="color: #66cc66;">&#123;</span>
                    <span style="color: #0066CC;">button</span>.<span style="color: #006600;">dispatchEvent</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> MouseEvent<span style="color: #66cc66;">&#40;</span> MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, <span style="color: #000000; font-weight: bold;">true</span>,<span style="color: #000000; font-weight: bold;">false</span>, <span style="color: #0066CC;">button</span>.<span style="color: #006600;">mouseX</span>, <span style="color: #0066CC;">button</span>.<span style="color: #006600;">mouseY</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;
                <span style="color: #66cc66;">&#125;</span>
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            protected <span style="color: #000000; font-weight: bold;">function</span> errorHandler<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span> : UncaughtErrorEvent <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;An error has occurred and been caught by the global error handler: &quot;</span> + <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">error</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">&quot;My Global Error Handler&quot;</span><span style="color: #66cc66;">&#41;</span>;
                <span style="color: #0066CC;">e</span>.<span style="color: #006600;">preventDefault</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>s:Label x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;If you accept dragDrop you need to avoid the error!&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>s:CheckBox id=<span style="color: #ff0000;">&quot;acceptDragDropCheckBox&quot;</span> x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;30&quot;</span> label=<span style="color: #ff0000;">&quot;Accept DragDrop&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>s:CheckBox id=<span style="color: #ff0000;">&quot;avoidErrorCheckBox&quot;</span> x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;50&quot;</span> label=<span style="color: #ff0000;">&quot;Avoid error&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> id=<span style="color: #ff0000;">&quot;dragButton&quot;</span> x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;110&quot;</span> mouseDown=<span style="color: #ff0000;">&quot;onButtonMouseDown(event)&quot;</span> label=<span style="color: #ff0000;">&quot;Drag me. Or click me for error!&quot;</span><span style="color: #66cc66;">/&gt;</span>  
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p><strong>UPDATE:</strong></p>
<p>A much better way to avoid this error is listening to a <code>DragEvent.DRAG_ENTER</code> before calling <code>DragManager.acceptDragDrop()</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
               xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
               xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span>
&nbsp;
            dragEnter=<span style="color: #ff0000;">&quot;dragEnterDataRenderer(event)&quot;</span>
&nbsp;
            <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span>
            <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>fx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">DragSource</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">UIComponent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">DragEvent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">managers</span>.<span style="color: #006600;">DragManager</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onButtonMouseDown<span style="color: #66cc66;">&#40;</span> event : MouseEvent <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">button</span> : UIComponent = UIComponent<span style="color: #66cc66;">&#40;</span> event.<span style="color: #0066CC;">target</span> <span style="color: #66cc66;">&#41;</span>;
                <span style="color: #000000; font-weight: bold;">var</span> dragSource:DragSource = <span style="color: #000000; font-weight: bold;">new</span> DragSource<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
                DragManager.<span style="color: #006600;">doDrag</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">button</span>, dragSource, event <span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> dragEnterDataRenderer<span style="color: #66cc66;">&#40;</span> event : DragEvent <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                DragManager.<span style="color: #006600;">acceptDragDrop</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">this</span> <span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>fx:Script<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> id=<span style="color: #ff0000;">&quot;dragButton&quot;</span> x=<span style="color: #ff0000;">&quot;20&quot;</span> y=<span style="color: #ff0000;">&quot;20&quot;</span> mouseDown=<span style="color: #ff0000;">&quot;onButtonMouseDown(event)&quot;</span> label=<span style="color: #ff0000;">&quot;Click me. Drag me. No Error.&quot;</span><span style="color: #66cc66;">/&gt;</span>  
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2011/01/14/flex-4-dragmanager-dodrag-with-acceptdragdrop-error/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 in Browser]]></category>
		<category><![CDATA[Flash Player]]></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 in Browser]]></category>
		<category><![CDATA[Flash Player]]></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 Update &#8211; &#8230; <a href="http://blog.derraab.com/2010/05/26/flash-performance-visualizer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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 />
<strike><a href="http://github.com/mrdoob/Hi-ReS-Stats">Mr.doop&#8217;s Stats.as @ GitHub</a></strike></p>
<p>Update &#8211; Most recent version I found:<br />
<a href="http://code.google.com/p/mrdoob/source/browse/trunk/libs/net/hires/debug/Stats.as">http://code.google.com/p/mrdoob/source/browse/trunk/libs/net/hires/debug/Stats.as</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[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flash Player]]></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>3</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[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flash Player]]></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>2</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[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[How To...]]></category>
		<category><![CDATA[iPhone / iPad]]></category>
		<category><![CDATA[Librarys]]></category>
		<category><![CDATA[Utils]]></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>3</slash:comments>
		</item>
		<item>
		<title>Flash and Amazon SimpleDB</title>
		<link>http://blog.derraab.com/2010/03/26/flash-an-amazon-simpledb/</link>
		<comments>http://blog.derraab.com/2010/03/26/flash-an-amazon-simpledb/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 21:05:28 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash in Browser]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Librarys]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=146</guid>
		<description><![CDATA[I did some research about using Amazons SimpleDB service within a Flash based application and found these basic facts: http://sdb.amazonaws.com/crossdomain.xml is not available. This means no direct calls from Flash clients in browsers are possible! Even if it would be &#8230; <a href="http://blog.derraab.com/2010/03/26/flash-an-amazon-simpledb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I did some research about using Amazons SimpleDB service within a Flash based application and found these basic facts:</p>
<ul>
<li>http://sdb.amazonaws.com/crossdomain.xml is not available. This means no direct calls from Flash clients in browsers are possible!</li>
<li>Even if it would be possible some day, you would need to find a secure way to deliver your AWS key to the Flash client.</li>
<li>Using a web proxy is a solution that would cause a lot of traffic on your server.</li>
</ul>
<p>So using Amazons SimpleDB for browser based Flash applications makes not much sense to me.<br />
It might be more useful for Flash applications running on local machines like Flash projectors or Adobe AIR applications but there is still a security problem with hiding your AWS key.</p>
<p>Anyway, I found two ActionScript libraries that might be useful:<br />
<a href="http://code.google.com/p/actionscript-simpledb-library/">http://code.google.com/p/actionscript-simpledb-library/</a><br />
<a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1365">http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1365</a></p>
<p>And this thread in Amazons discussion forums:<br />
<a href="http://developer.amazonwebservices.com/connect/thread.jspa?threadID=19698">http://developer.amazonwebservices.com/connect/thread.jspa?threadID=19698</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/03/26/flash-an-amazon-simpledb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 API Reference for the iPhone</title>
		<link>http://blog.derraab.com/2010/01/29/actionscript-3-api-reference-for-the-iphone/</link>
		<comments>http://blog.derraab.com/2010/01/29/actionscript-3-api-reference-for-the-iphone/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 09:08:40 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Documentations]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[iPhone / iPad]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=114</guid>
		<description><![CDATA[http://www.mikechambers.com/as3iphone/ Nice to have!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mikechambers.com/as3iphone/">http://www.mikechambers.com/as3iphone/</a></p>
<p>Nice to have!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2010/01/29/actionscript-3-api-reference-for-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Custom Flex Components with Flash</title>
		<link>http://blog.derraab.com/2009/04/09/create-custom-flex-components-with-flash/</link>
		<comments>http://blog.derraab.com/2009/04/09/create-custom-flex-components-with-flash/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 16:52:49 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[How To...]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=79</guid>
		<description><![CDATA[I found a Adobe TV Video which contains basic knowledge how to create custom Flex components with Flash CS3:]]></description>
			<content:encoded><![CDATA[<p>I found a Adobe TV Video which contains basic knowledge how to create custom Flex components with Flash CS3:</p>
<p><embed src="http://tv.adobe.com/Embed.swf" quality="high" bgcolor="#000000" width="467" height="300" name="AdobeTVPlayer" play="true" loop="false" quality="high" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashVars="v=~b64~aHR0cDovL2Fkb2JlLmVkZ2Vib3NzLm5ldC9mbGFzaC9hZG9iZS9hZG9iZXR2Mi91bmRlcl90aGVfaG9vZF93aXRoX2Fkb2JlLzM1X3VoYV8wMDQuZmx2P3Jzc19mZWVkaWQ9MTUzNCZ4bWx2ZXJzPTI=&#038;w=467&#038;t=http://tv.adobe.com/#vi+f1534v1463&#038;h=300"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2009/04/09/create-custom-flex-components-with-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

