<?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>bryanheisey.com</title>
	<atom:link href="http://bryanheisey.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://bryanheisey.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 22 May 2010 17:40:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VCam AS3 1.1</title>
		<link>http://bryanheisey.com/blog/?p=73</link>
		<comments>http://bryanheisey.com/blog/?p=73#comments</comments>
		<pubDate>Mon, 17 May 2010 16:41:30 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=73</guid>
		<description><![CDATA[I finally had some time to revisit the vCam AS3. I removed a bunch of unnecessary code. Please try out the new version and send me any bugs you find.
Thanks!
Download vCam AS3 1.1 (Requires Flash CS3 and Actionscript 3)
]]></description>
			<content:encoded><![CDATA[<p>I finally had some time to revisit the vCam AS3. I removed a bunch of unnecessary code. Please try out the new version and send me any bugs you find.</p>
<p>Thanks!</p>
<p><a href="http://bryanheisey.com/blog/wp-content/uploads/2010/05/vcam_as3_1-1.zip" title="Download vCam AS3 1.1">Download vCam AS3 1.1</a> (Requires Flash CS3 and Actionscript 3)</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=73</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dispatch DOM events from Flash embed object via AS3.</title>
		<link>http://bryanheisey.com/blog/?p=41</link>
		<comments>http://bryanheisey.com/blog/?p=41#comments</comments>
		<pubDate>Fri, 12 Mar 2010 15:02:25 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=41</guid>
		<description><![CDATA[I've been working on a new Flash app recently. I ran into an interesting scenario where and I needed external ui components to monitor the app changes. After some trial and error I came up with the following:
The first step is to download a nifty class called EmbedObject here. It allows you to get the [...]]]></description>
			<content:encoded><![CDATA[<p>I've been working on a new Flash app recently. I ran into an interesting scenario where and I needed external ui components to monitor the app changes. After some trial and error I came up with the following:</p>
<p>The first step is to download a nifty class called EmbedObject <a title="here" href="http://frontenddeveloper.net/wiki/index.php?title=ObjectEmbed_Class" target="_blank">here</a>. It allows you to get the ID of the Flash embed object.</p>
<p>The next step is to create a class that will dispatch the event using an ExternalInterface call.</p>
<pre class="text">package {
&nbsp;
import flash.external.*;
import com.asorg.browser.*;
&nbsp;
public dynamic class JSEventDispatcher{
&nbsp;
  public static function dispatchEvent(event:String):void{
&nbsp;
    var script_js:XML = &lt;script&gt;
      &lt;![CDATA[
        function(id,event){
           var flashObject = document.getElementById(id);
           var evObj = document.createEvent('Events');
           evObj.initEvent(event, true, true);
           flashObject.dispatchEvent(evObj);
        }
      ]]&gt;
   &lt;/script&gt;
    ExternalInterface.call(script_js, EmbedObject.getId(), event);
   }
  }
}</pre>
<p>The JSEventDispatcher class has a static method called dispatchEvent. Embedded JavaScript gets a reference to the Flash embed object associated with the SWF and dispatches your event.</p>
<p>When you want to dispatch an event from your SWF you would simply call:</p>
<pre class="text">JSEventDispatcher.dispatchEvent('yourEvent');</pre>
<p>The last step is to setup an event listener on your page that listens for the event.</p>
<pre class="text">&lt;script language=&quot;JavaScript&quot;type=&quot;text/javascript&quot;&gt;
	function addListeners(){
		var flashObject = document.getElementById('yourEmbedObjectID');
  		flashObject.addEventListener('yourEvent',eventHandler,false);
	}
&nbsp;
	function eventHandler(e){
	  	alert('fired')	
	}
&lt;/script&gt;</pre>
<p><strong>NOTE! Be sure that the Flash object is instantiated before you attach the listener.</strong></p>
<p>There you have it. Now your embed object will dispatch events sent by your SWF!</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=41</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Parallax Scrolling</title>
		<link>http://bryanheisey.com/blog/?p=26</link>
		<comments>http://bryanheisey.com/blog/?p=26#comments</comments>
		<pubDate>Tue, 17 Feb 2009 20:44:02 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=26</guid>
		<description><![CDATA[You can easily achieve parallax scrolling in Flash CS4. Using the vCam AS3, apply different Z positions to your movieclips. Then tween the camera and publish your movie. How easy is that?
Here is a test I ran (Flash Player 10 Required):
Download FLA (Flash CS4)






Artwork by Tim Allen
]]></description>
			<content:encoded><![CDATA[<p>You can easily achieve parallax scrolling in Flash CS4. Using the vCam AS3, apply different Z positions to your movieclips. Then tween the camera and publish your movie. How easy is that?</p>
<p><strong>Here is a test I ran (Flash Player 10 Required):</strong></p>
<p><a href="http://bryanheisey.com/blog/wp-content/uploads/2009/02/vcamas3_parallax.fla" title="Parallax Scrolling">Download FLA (Flash CS4)</a></p>
<p>
<object type="application/x-shockwave-flash" width="500" height="375">
<param name="movie" value="vcam_ps.swf" />
<embed src="vcam_ps.swf" type="application/x-shockwave-flash" width="500" height="375" >
</object>
<br />
Artwork by <a target="_blank" href="http://www.redartist.com">Tim Allen</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=26</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Depth-of-Field experiment</title>
		<link>http://bryanheisey.com/blog/?p=25</link>
		<comments>http://bryanheisey.com/blog/?p=25#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:11:45 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=25</guid>
		<description><![CDATA[Many of you have been asking for a depth-of-field feature for the vCam AS3. I've been running some experiments recently with Flash CS4 and it appears to be feasible. There is however a bug in CS4 that causes timeline based tweens to be deleted whenever you apply a filter using ActionScript. I've submitted a bug report [...]]]></description>
			<content:encoded><![CDATA[<p>Many of you have been asking for a depth-of-field feature for the vCam AS3. I've been running some experiments recently with Flash CS4 and it appears to be feasible. There is however a bug in CS4 that causes timeline based tweens to be deleted whenever you apply a filter using ActionScript. I've submitted a bug report to Adobe. The depth-of-field feature won't be of much use until this bug is worked out because all your precious tweens will be removed when the vCam attempts to apply the filter to your timeline instances.</p>
<p>It's important to note that all of the blurring and motion you see in the animation below is being handled by the vCam.</p>
<p><strong>Here is the result of my test (Flash Player 10 Required):</strong></p>
<p>
<object type="application/x-shockwave-flash" width="500" height="375">
<param name="movie" value="vcam_dof.swf" />
<embed src="vcam_dof.swf" type="application/x-shockwave-flash" width="500" height="375" >
</object>
</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=25</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash CS4 Issues</title>
		<link>http://bryanheisey.com/blog/?p=23</link>
		<comments>http://bryanheisey.com/blog/?p=23#comments</comments>
		<pubDate>Thu, 12 Feb 2009 16:14:06 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=23</guid>
		<description><![CDATA[I've made a minor change to the vCam AS3 that should fix a problem when applying filters in CS4.
Download vCam AS3 v1.01 
]]></description>
			<content:encoded><![CDATA[<p>I've made a minor change to the vCam AS3 that should fix a problem when applying filters in CS4.</p>
<p><a href="http://bryanheisey.com/blog/wp-content/uploads/2009/02/vcam_as3.fla" title="vCam AS3">Download vCam AS3 v1.01</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=23</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vCam AS3 Interactive</title>
		<link>http://bryanheisey.com/blog/?p=12</link>
		<comments>http://bryanheisey.com/blog/?p=12#comments</comments>
		<pubDate>Mon, 07 Apr 2008 02:59:12 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=12</guid>
		<description><![CDATA[Note: Just released Beta 1.1.
Introducing vCam AS3 Interactive. The original vCam AS3 uses the BitmapData class to optimize performance during playback. When you view the vCam AS3 swf you are watching a bitmap transformation of the stage. While this is ideal for animation projects, it causes problems when you want to incorporate buttons or interactive elements into your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Note: Just released <a href="http://bryanheisey.com/blog/?p=73">Beta 1.1</a>.</strong></p>
<p>Introducing vCam AS3 Interactive. The original vCam AS3 uses the BitmapData class to optimize performance during playback. When you view the vCam AS3 swf you are watching a bitmap transformation of the stage. While this is ideal for animation projects, it causes problems when you want to incorporate buttons or interactive elements into your presentation. I had a request this weekend for an interactive version of vCam AS3. This version will allow you to add interactive elements. However, you will notice a performance difference especially when applying the blur filter. The vCam AS2 already supports interactive elements since it does not use the BitmapData class for optimization.</p>
<p> <a href="http://bryanheisey.com/blog/wp-content/uploads/2008/04/vcam_as3_interactive.fla" title="vCam AS3 Interactive">Download vCam AS3 Interactive</a></p>
<p> Thanks tisi!</p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Flash vCam AS3</title>
		<link>http://bryanheisey.com/blog/?p=1</link>
		<comments>http://bryanheisey.com/blog/?p=1#comments</comments>
		<pubDate>Fri, 28 Mar 2008 22:35:29 +0000</pubDate>
		<dc:creator>bryan</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://bryanheisey.com/blog/?p=1</guid>
		<description><![CDATA[Announcing vCam AS3 v1.1 for Flash! For those who aren't familiar with vCam, I'll offer a brief explanation. In 2005, Sham Bhangal and Dave Dixon released the original vCam or "virtual camera" for Flash.  Let's say a Flash developer is working on an animation and wants the animation to pan from left to right. [...]]]></description>
			<content:encoded><![CDATA[<p>Announcing vCam AS3 v1.1 for Flash! For those who aren't familiar with vCam, I'll offer a brief explanation. In 2005, Sham Bhangal and Dave Dixon released the original vCam or "virtual camera" for Flash.  Let's say a Flash developer is working on an animation and wants the animation to pan from left to right.  Without the vCam, the developer would have to create tweens for each layer in the timeline.  Using the vCam, however, the developer can animate a single vCam instance on the timeline to create the same pan.  Simply place the vCam on the left side of the stage and create a motion tween to the right side of the stage. Publish out the file and the scene pans with a single  tween! The original vCam can also be used to adjust size and add color transformations.</p>
<p>Now vCam AS3 brings a new array of options with added features including:</p>
<p>- Rotation<br />
- Blur<br />
- Brightness/Contrast<br />
- Hue/Saturation<br />
- and more!</p>
<p>Sham and Dave were very generous and offered the original vCam free of charge. Therefore I am also offering this new version for free. Have fun all!</p>
<p>Version 1.1 has been optimized and the bitmap data processing has been removed.</p>
<p><a href="http://bryanheisey.com/blog/wp-content/uploads/2010/05/vcam_as3_1-1.zip" title="vCam AS3">Download vCam AS3 v1.1 FLA</a> (Requires Flash CS3 and Actionscript 3)</p>
<p>*** Note: A bug in Flash CS3 causes stage.stageHeight to be -100 the actual stageHeight if the bandwidth profiler is open. Either close the profiler or view the SWF outside flash.</p>
<p><strong>The animation below shows the vCam AS3 animated on the stage:</strong></p>
<p>
<object type="application/x-shockwave-flash" width="500" height="375">
<param name="movie" value="vcam2.swf" />
<embed src="vcam2.swf" type="application/x-shockwave-flash" width="500" height="375" >
</object>
<br />
<strong>The animation below is the resulting swf file:</strong></p>
<p>
<object type="application/x-shockwave-flash" width="500" height="375">
<param name="movie" value="vcam.swf" />
<embed src="vcam.swf" type="application/x-shockwave-flash" width="500" height="375" >
</object>
<br />
Artwork by <a target="_blank" href="http://www.joshuamenas.com">Josh Menas</a>  |  Composited by <a target="_blank" href="http://www.redartist.com">Tim Allen</a></p>
]]></content:encoded>
			<wfw:commentRss>http://bryanheisey.com/blog/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>64</slash:comments>
		</item>
	</channel>
</rss>
