<?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>Blog » Orland Media Ltd&#187; Blog « Orland Media Ltd</title>
	<atom:link href="http://www.orlandmedia.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.orlandmedia.com/blog</link>
	<description>The blog of Orland Media Ltd</description>
	<lastBuildDate>Sat, 13 Jun 2009 00:44:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Why is WinZip so slow?</title>
		<link>http://www.orlandmedia.com/blog/general/why-is-winzip-so-slow/</link>
		<comments>http://www.orlandmedia.com/blog/general/why-is-winzip-so-slow/#comments</comments>
		<pubDate>Fri, 12 Jun 2009 15:04:43 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=293</guid>
		<description><![CDATA[You might have noticed Winzip has started to run very slowly ever since you installed Windows XP Service Pack 2 or started to use Windows Vista. It&#8217;ll crawl along, taking about a second to extract each each file in an archive. What is going on?
The explanation is on WinZip&#8217;s site. It&#8217;s to do with Windows&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>You might have noticed Winzip has started to run very slowly ever since you installed Windows XP Service Pack 2 or started to use Windows Vista. It&#8217;ll crawl along, taking about a second to extract each each file in an archive. What is going on?</p>
<p><a href="http://www.winzip.com/xattmgr.htm" target="_blank">The explanation</a> is on WinZip&#8217;s site. It&#8217;s to do with Windows&#8217; Attachment Manager assigning security threat levels to files. This really isn&#8217;t acceptable though, because it will slow down your work so much.</p>
<p>The suggested solution is to &#8220;unblock&#8221; each file on a file for file basis, but this again is not ideal. We are not aware of a permanent solution to this issue (i.e. a way of turning off the hyper-vigilant Attachment Manager). A better solution is perhaps to turn to <a href="http://www.7-zip.org/" target="_blank">7-Zip</a>.</p>
<p>7-Zip is freeware which is faster than Winzip, integrates into the shell and can handle at least as many compression formats. We&#8217;re using it, and at the time of writing it seems to be the best solution for the problem with WinZip.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/general/why-is-winzip-so-slow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>localToGlobal() in AS3 not working</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/localtoglobal-in-as3-not-working/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/localtoglobal-in-as3-not-working/#comments</comments>
		<pubDate>Wed, 13 May 2009 16:06:32 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=277</guid>
		<description><![CDATA[localToGlobal() not working? The LiveDocs on this potentially very useful method, along with its partner globalToLocal() are not actually very helpful.
What they don&#8217;t make clear is that you need to be sure to overwrite your point when using it:

// WRONG:
var pt:Point = new Point(target.x, target.y);
target.parent.localToGlobal(pt);
parent.globalToLocal(pt);

// RIGHT:
var pt:Point = new Point(target.x, target.y);
pt = target.parent.localToGlobal(pt);
pt = parent.globalToLocal(pt);

Simply [...]]]></description>
			<content:encoded><![CDATA[<p><code>localToGlobal()</code> not working? The <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObject.html#localToGlobal()" target="_blank">LiveDocs</a> on this potentially very useful method, along with its partner <code>globalToLocal()</code> are not actually very helpful.</p>
<p>What they don&#8217;t make clear is that you need to be sure to overwrite your point when using it:</p>
<pre class="brush: php">
// WRONG:
var pt:Point = new Point(target.x, target.y);
target.parent.localToGlobal(pt);
parent.globalToLocal(pt);

// RIGHT:
var pt:Point = new Point(target.x, target.y);
pt = target.parent.localToGlobal(pt);
pt = parent.globalToLocal(pt);
</pre>
<p>Simply running a <code>localToGlobal()</code> method on a point in a given scope is not enough. You need to write the result back into the point. You might be forgiven for not seeing this, because it was not necessary for the equivalent method in AS2!</p>
<p><code>localToGlobal()</code> and <code>globalToLocal()</code> can the source of considerable frustration, especially as this differences such as this are not mentioned by Adobe. But properly understood these methods are not complicated. We hope this post has helped you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/localtoglobal-in-as3-not-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 course in July</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/as3-course-in-july/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/as3-course-in-july/#comments</comments>
		<pubDate>Thu, 07 May 2009 16:59:17 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=274</guid>
		<description><![CDATA[Our next Applied ActionScript 3.0 course will more than likely be scheduled for early July, 2009.
The course is limited to only 5 delegates. If you would like to reserve a place please let us know &#8211; we&#8217;d be happy to have you there.
]]></description>
			<content:encoded><![CDATA[<p>Our next <a href="http://www.orlandmedia.com/training/flash/applied_as3/">Applied ActionScript 3.0 course</a> will more than likely be scheduled for early July, 2009.</p>
<p>The course is limited to only 5 delegates. If you would like to reserve a place please <a href="http://www.orlandmedia.com/contact/">let us know</a> &#8211; we&#8217;d be happy to have you there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/as3-course-in-july/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error #1007: Instantiation attempted on a non-constructor with APE</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/error-1007-instantiation-attempted-on-a-non-constructor-with-ape/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/error-1007-instantiation-attempted-on-a-non-constructor-with-ape/#comments</comments>
		<pubDate>Fri, 01 May 2009 11:40:39 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=270</guid>
		<description><![CDATA[We&#8217;re using APE &#8211; the ActionScript Physics Engine &#8211; for our current project.
If you run into the TypeError:
Error #1007: Instantiation attempted on a non-constructor
..when compiling with Flash CS4, the reason is that APE defines a class called Vector, which clashes with a new class, of a different kind, in Flash 10, also called Vector.
The solution [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re using <a href="http://www.cove.org/ape/" target="_blank">APE</a> &#8211; the ActionScript Physics Engine &#8211; for our current project.</p>
<p>If you run into the TypeError:</p>
<p class = "output">Error #1007: Instantiation attempted on a non-constructor</p>
<p>..when compiling with Flash CS4, the reason is that APE defines a class called <code>Vector</code>, which clashes with a new class, of a different kind, in Flash 10, also called <code>Vector</code>.</p>
<p>The solution is to either avoid publishing for Flash 10, if you don&#8217;t need it, or replace all references to Vector throughout the APE code with the fully qualified reference <code>org.cove.ape.Vector</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/error-1007-instantiation-attempted-on-a-non-constructor-with-ape/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TypeError: Error #1006: value is not a function</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/typeerror-error-1006-value-is-not-a-function/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/typeerror-error-1006-value-is-not-a-function/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 23:06:41 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=267</guid>
		<description><![CDATA[Another tip: if you get this error, one possible explanation is that you have tried to declare a variable with the same name as an already declared function &#8211; perhaps one which has been inherited from a superclass.
]]></description>
			<content:encoded><![CDATA[<p>Another tip: if you get this error, one possible explanation is that you have tried to declare a variable with the same name as an already declared function &#8211; perhaps one which has been inherited from a superclass.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/typeerror-error-1006-value-is-not-a-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flash to be in set top boxes</title>
		<link>http://www.orlandmedia.com/blog/adobe-flash/adobe-flash-to-be-in-set-top-boxes/</link>
		<comments>http://www.orlandmedia.com/blog/adobe-flash/adobe-flash-to-be-in-set-top-boxes/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 14:49:10 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=265</guid>
		<description><![CDATA[Flash is becoming more and more prevalent on mobile devices and it is now to be built into set top boxes &#8211; and we are ready, willing and able to provide the content.
]]></description>
			<content:encoded><![CDATA[<p>Flash is becoming more and more prevalent on mobile devices and it is now to be <a href="http://news.bbc.co.uk/1/hi/technology/8008070.stm" target="_blank">built into set top boxes</a> &#8211; and we are ready, willing and able to provide the content.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/adobe-flash/adobe-flash-to-be-in-set-top-boxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 (AS3) training course in London</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/actionscript-3-as3-training-course-in-london/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/actionscript-3-as3-training-course-in-london/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 13:55:58 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=259</guid>
		<description><![CDATA[We have just set the date for our next Applied ActionScript 3.0 course: it will be held on 5th, 6th &#038; 7th May 2009 in London, UK.
The course teaches how to build Flash sites exclusively using ActionScript 3.0.
One or two places are still available if you would like to attend  &#8211; but be quick!
]]></description>
			<content:encoded><![CDATA[<p>We have just set the date for our next <a href="http://www.orlandmedia.com/training/flash/applied_as3/">Applied ActionScript 3.0 course</a>: it will be held on 5th, 6th &#038; 7th May 2009 in London, UK.</p>
<p>The course teaches how to build Flash sites exclusively using ActionScript 3.0.</p>
<p>One or two places are still available if you would like to attend  &#8211; but <a href="http://www.orlandmedia.com/contact/">be quick!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/actionscript-3-as3-training-course-in-london/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProgressEvent.PROGRESS misreports bytesLoaded &amp; bytesTotal</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/progresseventprogress-misreports-bytesloaded-bytestotal/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/progresseventprogress-misreports-bytesloaded-bytestotal/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 13:35:59 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=251</guid>
		<description><![CDATA[One problem we recently ran into involved ProgressEvent.PROGRESS events seeming to misreport the proportion of the file that has loaded.
This would cause the preloader&#8217;s bar to extend beyond the 100% mark. While we don&#8217;t have time currently to outline the full technical context of the issue, we did spend some time examining it, and we [...]]]></description>
			<content:encoded><![CDATA[<p>One problem we recently ran into involved <code>ProgressEvent.PROGRESS</code> events seeming to misreport the proportion of the file that has loaded.</p>
<p>This would cause the preloader&#8217;s bar to extend beyond the 100% mark. While we don&#8217;t have time currently to outline the full technical context of the issue, we did spend some time examining it, and we solved it.</p>
<p>The solution to the problem was not to use the <code>bytesLoaded</code> and <code>bytesTotal</code> of the actual <code>ProgressEvent</code> in the event listener, but to instead use the properties of the target (which is a <code>LoaderInfo</code> object). So your code looks like this:</p>
<pre class="brush: php">
private function update(e:ProgressEvent):void
{
  // causes misreport:
  // var bt:uint = e.bytesTotal;
  // var bl:uint = e.bytesLoaded;

  // prevents misreport:
  var bt:uint = e.target.bytesTotal;
  var bl:uint = e.target.bytesLoaded;

  bar.scaleX = bl/bt;
}
</pre>
<p>We&#8217;ll try to expand on this issue at a later time. In the meantime we hope this helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/progresseventprogress-misreports-bytesloaded-bytestotal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes says &#8220;Preparing to Install&#8221; every time it starts</title>
		<link>http://www.orlandmedia.com/blog/general/itunes-says-preparing-to-install-every-time-it-starts/</link>
		<comments>http://www.orlandmedia.com/blog/general/itunes-says-preparing-to-install-every-time-it-starts/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 12:40:44 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=247</guid>
		<description><![CDATA[Here at Orland Media we make full use of iTunes on Vista, having it either on random play or tuning into to any of several hundred radio stations throughout the world while working.
The above mentioned problem can sometimes occur on upgrading iTunes, and it doesn&#8217;t go away even on a reboot. The simple cure for [...]]]></description>
			<content:encoded><![CDATA[<p>Here at Orland Media we make full use of <a href="http://www.apple.com/itunes/" target="_blank">iTunes</a> on Vista, having it either on random play or tuning into to any of several hundred radio stations throughout the world while working.</p>
<p>The above mentioned problem can sometimes occur on upgrading iTunes, and it doesn&#8217;t go away even on a reboot. The simple cure for it is to make a new shortcut pointing to the iTunes executable file, and dispose of the old shortcut.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/general/itunes-says-preparing-to-install-every-time-it-starts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting onReleaseOutside in AS3</title>
		<link>http://www.orlandmedia.com/blog/actionscript-3/detecting-onreleaseoutside-in-as3/</link>
		<comments>http://www.orlandmedia.com/blog/actionscript-3/detecting-onreleaseoutside-in-as3/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:28:32 +0000</pubDate>
		<dc:creator>Gavin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>

		<guid isPermaLink="false">http://www.orlandmedia.com/blog/?p=242</guid>
		<description><![CDATA[ActionScript 2.0 has support for the onReleaseOutside event in the following manner:

myMovieClip.onRelease =
myMovieClip.onReleaseOutside = function():Void
{
   this._x += 300;
}

This directly applied event handler will trigger when the mouse is released over myMovieClip or when that clip is clicked upon then the mouse is subsequently released elsewhere.
ActionScript 3.0, however, does not define an onReleaseOutside event [...]]]></description>
			<content:encoded><![CDATA[<p>ActionScript 2.0 has support for the <code>onReleaseOutside</code> event in the following manner:</p>
<pre class="brush: php">
myMovieClip.onRelease =
myMovieClip.onReleaseOutside = function():Void
{
   this._x += 300;
}
</pre>
<p>This directly applied event handler will trigger when the mouse is released over myMovieClip or when that clip is clicked upon then the mouse is subsequently released elsewhere.</p>
<p>ActionScript 3.0, however, does not define an <code>onReleaseOutside</code> event type, though there are <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html#CLICK" target="_blank">plenty of other MouseEvent types</a>.</p>
<p>Usually, this is not a problem. You want to detect a <code>CLICK</code> event, which is dispatched when the user has pressed the mouse down then released it over the same object (with any number of other possible mouse events in between). The logic for this is that the user might have changed their mind and be deliberately releasing the mouse while not over the object, not wishing to trigger any event.</p>
<p>But suppose we are creating a button which reacts to a <code>MouseEvent.MOUSE_DOWN</code> event &#8211; perhaps a fast-forward button such as we created recently in order to speed up the playback of an MP3. In this case, we want the MP3 to revert to normal playback speed even if the user releases their mouse while not exactly over the button (as is often the case). We need a <code>releaseOutside</code> event for this eventuality.</p>
<p>So how are you supposed to detect when the user has clicked on your interactive object then released the mouse outside? The solution is to temporarily apply a new event listener until the mouse is released, as follows:</p>
<pre class="brush: php">
private function mouseDown(e:MouseEvent = null):void
{
   stage.addEventListener(MouseEvent.MOUSE_UP,
   mouseUp, false, 0, true);
}

private function mouseUp(e:MouseEvent = null):void
{
   stage.removeEventListener(MouseEvent.MOUSE_UP, mouseUp);
   // do other stuff
}

myButton.addEventListener(MouseEvent.MOUSE_DOWN, mouseDown, false, 0, true);
</pre>
<p>This code is minimal, but it illustrates the point. We always detect for a <code>MOUSE_DOWN</code> on the given object (<code>myButton</code>), but only when this has occurred do we then listen out for a <code>MOUSE_UP</code>. When this happens (regardless of where) our other listener function is triggered. Note that this then unsubscribes itself from the Stage, and then everything is cleaned up.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.orlandmedia.com/blog/actionscript-3/detecting-onreleaseoutside-in-as3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
