<?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>hubflanger &#187; Flash Player</title>
	<atom:link href="http://hubflanger.com/tag/flash-player/feed/" rel="self" type="application/rss+xml" />
	<link>http://hubflanger.com</link>
	<description>adventures in code</description>
	<lastBuildDate>Mon, 29 Mar 2010 22:41:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://hubflanger.com/?pushpress=hub'/>
		<item>
		<title>Thoughts about Adobe&#8217;s announcements today</title>
		<link>http://hubflanger.com/thoughts-about-adobes-announcements-today/</link>
		<comments>http://hubflanger.com/thoughts-about-adobes-announcements-today/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 05:24:43 +0000</pubDate>
		<dc:creator>Peng</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Open Screen Project Fund]]></category>

		<guid isPermaLink="false">http://hubflanger.com/?p=221</guid>
		<description><![CDATA[Adobe announced at the GSMA Mobile World Congress that Flash Player 10 will be available on smartphones running Windows Mobile, Google&#8217;s Android, Nokia S60/Symbian, and the new Palm operating systems by early 2010. 
What does this mean for Flash and Flex developers? It means that we can finally use the same tools that we use [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe announced at the <a href="http://reviews.cnet.com/8301-13970_7-10164745-78.html">GSMA Mobile World Congress</a> that Flash Player 10 will be available on smartphones running Windows Mobile, Google&#8217;s Android, Nokia S60/Symbian, and the new Palm operating systems by early 2010. </p>
<p>What does this mean for Flash and Flex developers? It means that we can finally use the same tools that we use to develop our Flash and Flex applications, be it the Flash IDE, Flex Builder, FDT/Eclipse or Flash Develop, and writing Actionscript 3 code to build apps that will run on mobile handsets that support Flash Player 10. No longer are we restricted to the limited features of FlashLite and the Actionscript 2 language. I expect to see an explosion of developers from within the Flash and Flex communities jump on board the mobile bandwagon in 2010. </p>
<p>In addition to the Flash Player 10 announcement, Adobe in partnership with Nokia, also announced the <a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200902/021609AdobeNokia.html">$10 Million Open Screen Project Fund</a>. The Open Screen Project Fund encourages the use of Adobe tools and existing developer skills to create exciting and unique Flash applications for millions of Nokia devices. With the widespread adoption of Flash Player 10 in the mobile world, this should help solidify Flash as the ubiquitous platform for mobile development.</p>
<p>Naturally, there will always be the Flash haters who prefer to run native apps and live in a Flash-free world. And then there&#8217;s the iPhone, which is a subject better left for another day.</p>
]]></content:encoded>
			<wfw:commentRss>http://hubflanger.com/thoughts-about-adobes-announcements-today/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stage RESIZE and the stageWidth and stageHeight Bug</title>
		<link>http://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/</link>
		<comments>http://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 16:53:56 +0000</pubDate>
		<dc:creator>Peng</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[RESIZE]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[stage]]></category>
		<category><![CDATA[stageHeight]]></category>
		<category><![CDATA[stageWidth]]></category>

		<guid isPermaLink="false">http://hubflanger.com/using-the-stagewidth-and-stageheight-properties-2/</guid>
		<description><![CDATA[A while ago, I came across a situation where my Flash application would launch but the stage.stageWidth and stage.stageHeight properties would always return 0 within my document class&#8217;s constructor. As I needed to access those properties at runtime and I did not want to hardcode those values to a pair of variables, it drove me [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago, I came across a situation where my Flash application would launch but the <code>stage.stageWidth</code> and <code>stage.stageHeight</code> properties would always return 0 within my document class&#8217;s constructor. As I needed to access those properties at runtime and I did not want to hardcode those values to a pair of variables, it drove me to seek an answer to this problem.</p>
<p>Turns out that when the <code>stage</code> is initialized, its <code>stageWidth</code> and <code>stageHeight</code> properties are 0 until a <code>Stage RESIZE</code> event is triggered. This event is dispatched when the <code>scaleMode</code> property of the <code>Stage</code> object is set to <code>StageScaleMode.NO_SCALE</code> and the SWF file is resized ie. when the stage is rendered by the Flash Player. So if you need to add a display object onto the <code>stage</code> and its positioning is dependent on the <code>stageWidth</code> or <code>stageHeight</code> properties at runtime, it&#8217;s best handled by a listener that is subscribed to the <code>Stage RESIZE</code> event.<span id="more-102"></span></p>
<p>Interestingly, despite universal claim that the Flash Player behaves exactly the same on all browsers, this problem only appears in a couple of browser/plugin configurations, namely FireFox/OSX and IE/Win. And strangely, on Safari and Firefox/Win, the <code>RESIZE</code> event is not even dispatched on page load, and neither does the Flash Player register the <code>stageWidth</code> and <code>stageHeight</code> properties as being 0. I have not tested the problem on other platforms but you are certainly welcome to do so yourselves and report your observations in the comments section. Eventually, it would be nice if we can get a straight answer from Adobe concerning this bug.</p>
<p>In the following demo code, I&#8217;ve attached a <code>Sprite</code> containing a <code>Rectangle</code> graphic and a <code>TextField</code>, to the <code>stage</code> once before the <code>RESIZE</code> event and once, after. You can see the results <a href="/demos/stage_resize/">here</a>.</p>
<div class="codeblock">
<pre>
package
{
  import flash.text.*;
  import flash.display.*;
  import flash.events.*;

  public class Demo extends Sprite
  {
    private var rect1:Sprite;
    private var rect2:Sprite;

    public function Demo()
    {
      rect1 = createNewRect("Before stage resize event.");
      rect1.x = 0;
      rect1.y = 0;
      addChild(rect1);

      stage.scaleMode = StageScaleMode.NO_SCALE;
      stage.align = StageAlign.TOP_LEFT;
      stage.addEventListener(Event.RESIZE, resizeHandler);
    }

    private function createNewRect(str:String):Sprite
    {
      var rect:Sprite = new Sprite();
      rect.graphics.beginFill(0x99CCFF);
      rect.graphics.drawRect(0, 0, 200, 100);
      rect.graphics.endFill();

      var fmt:TextFormat = new TextFormat();
      fmt.font = "Arial";
      fmt.size = 12;

      var tf:TextField = new TextField();
      tf.width = 200;
      tf.height = 100;
      tf.multiline = true;
      tf.defaultTextFormat = fmt;
      tf.text = str + "\n" + "stage.stageWidth: " + stage.stageWidth + "\n" +
            "stage.stageHeight: " + stage.stageHeight;

      rect.addChild(tf);
      return rect;
    }

    private function resizeHandler( event:Event ):void
    {
      if (rect2 != null &#038;&#038; contains(rect2)) {
        removeChild(rect2);
      }

      rect2 = createNewRect("After stage resize event.");
      rect2.x = (stage.stageWidth - rect2.width) / 2;
      rect2.y = (stage.stageHeight - rect2.height) / 2;
      addChild(rect2);
    }
  }
}
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Flash Player 9 H.264 Support</title>
		<link>http://hubflanger.com/flash-player-9-h264-support/</link>
		<comments>http://hubflanger.com/flash-player-9-h264-support/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 00:00:04 +0000</pubDate>
		<dc:creator>Peng</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[H.264]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://hubflanger.com/flash-player-9-h264-support/</guid>
		<description><![CDATA[Adobe announced H.264 support in the latest update of Flash Player 9, officially sparking off speculations of impending iPhone support for Flash (alas!). More details can be found in Adobe&#8217;s press announcement.
Download the latest Flash Player update and check out this sample video which my friend Colin has kindly uploaded.
]]></description>
			<content:encoded><![CDATA[<p>Adobe announced H.264 support in the latest update of Flash Player 9, officially sparking off speculations of impending iPhone support for Flash (alas!). More details can be found in Adobe&#8217;s <a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200708/082107FlashPlayer.html">press announcement</a>.</p>
<p><a href="http://labs.adobe.com/downloads/flashplayer9.html" target="_blank">Download</a> the latest Flash Player update and check out this <a href="http://staff.funnygarbage.com/colin/h264test.html" target="_blank">sample video</a> which my friend Colin has kindly uploaded.</p>
]]></content:encoded>
			<wfw:commentRss>http://hubflanger.com/flash-player-9-h264-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Player 9 debug and Flash Tracer</title>
		<link>http://hubflanger.com/flash-player-9-debug-tracer/</link>
		<comments>http://hubflanger.com/flash-player-9-debug-tracer/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 03:51:10 +0000</pubDate>
		<dc:creator>Peng</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash Tracer]]></category>

		<guid isPermaLink="false">http://hubflanger.com/flash/flash-player-9-debug-and-flash-tracer/</guid>
		<description><![CDATA[Adobe finally released a version of the debug Flash Player that works on the Intel Macs. Here&#8217;s how you can use the debugger with Sephiroth&#8217;s Flash Tracer plugin for Firefox to view your trace outputs in Firefox. 
Download and install the latest Flash Player 9 debugger version (9.0.r47).
Install the Flash Tracer extension for Firefox.
In the [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe finally released a version of the debug Flash Player that works on the Intel Macs. Here&#8217;s how you can use the debugger with Sephiroth&#8217;s <a href="http://www.sephiroth.it/firefox/" target="_blank">Flash Tracer</a> plugin for Firefox to view your trace outputs in Firefox. <span id="more-29"></span></p>
<p>Download and install the latest <a href="http://www.adobe.com/support/flashplayer/downloads.html#fp9" target="_blank">Flash Player 9 debugger version (9.0.r47)</a>.</p>
<p>Install the <a href="http://www.sephiroth.it/firefox/" target="_blank">Flash Tracer</a> extension for Firefox.</p>
<p>In the Preference settings for Flash Tracer, set the path to your flashlog:<br />
<code>Macintosh HD:Users:YourUserName:Library:Preferences:Macromedia:Flash Player:Logs:flashlog.txt</code></p>
<p>In XP, you&#8217;d find flashlog.txt here:<br />
<code>C:\Documents and Settings\YourUserName\Application Data\Macromedia\Flash Player\Logs\flashlog.txt</code></p>
<p>Fire up Flash Tracer from the Tools menu in Firefox.</p>
<p>Go to <a href="http://www.adobe.com/" target="_blank">Adobe&#8217;s home page</a> and voila! Enjoy the debugger in its full glory! </p>
<p>You wouldn&#8217;t think that Adobe&#8217;s developers would be so careless to leave their trace statements running in their published files, but I guess they&#8217;re only human like the rest of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://hubflanger.com/flash-player-9-debug-tracer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
