<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/albertomori/tags/as3</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 19 May 2013 17:58:17 GMT</pubDate>
<item>
<title>(ActionScript 3) Singleton - albertomori</title>
<link>http://snipplr.com/view/44036/singleton/</link>
<description><![CDATA[ <p>You can use a singleton for your document class (Main, in your example), which allows you to access the instance from anywhere.

The document class is a pretty good candidate for the singleton pattern, because generally there should only be instance available.</p> ]]></description>
<pubDate>Fri, 12 Nov 2010 23:43:46 GMT</pubDate>
<guid>http://snipplr.com/view/44036/singleton/</guid>
</item>
<item>
<title>(ActionScript 3) Search and Replace Strings - albertomori</title>
<link>http://snipplr.com/view/43665/search-and-replace-strings/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 06 Nov 2010 02:22:17 GMT</pubDate>
<guid>http://snipplr.com/view/43665/search-and-replace-strings/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Fullscreen Projector Demo with Escape Key to Quit (with confirmation screen) - albertomori</title>
<link>http://snipplr.com/view/40859/as3-fullscreen-projector-demo-with-escape-key-to-quit-with-confirmation-screen/</link>
<description><![CDATA[ <p>This is designed to be used with a Flash Projector (not in the browser or AIR) and only displays your movie in fullscreen mode. Download source files from here ... http://www.adrianparr.com/flash/fullscreen_demo/FullscreenDemo.zip</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 20:52:27 GMT</pubDate>
<guid>http://snipplr.com/view/40859/as3-fullscreen-projector-demo-with-escape-key-to-quit-with-confirmation-screen/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Draw a Dot at 0,0 to Show the Centre Of a DisplayObject - albertomori</title>
<link>http://snipplr.com/view/38930/as3-draw-a-dot-at-00-to-show-the-centre-of-a-displayobject/</link>
<description><![CDATA[ <p>A handy little function to dynamically draw a black dot on the stage (or displayObject). This can be useful if you want to see where 0,0 is located.</p> ]]></description>
<pubDate>Wed, 11 Aug 2010 20:13:13 GMT</pubDate>
<guid>http://snipplr.com/view/38930/as3-draw-a-dot-at-00-to-show-the-centre-of-a-displayobject/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Simple Grid Layout - albertomori</title>
<link>http://snipplr.com/view/38396/as3-simple-grid-layout/</link>
<description><![CDATA[ <p>Simple grid layout technique in actionscript 3. Check out the demo and more details at http://adamcoulombe.info/lab/as3/gridlayout.html</p> ]]></description>
<pubDate>Thu, 05 Aug 2010 00:07:44 GMT</pubDate>
<guid>http://snipplr.com/view/38396/as3-simple-grid-layout/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Find the shortest rotation angle between two angles - albertomori</title>
<link>http://snipplr.com/view/32347/as3-find-the-shortest-rotation-angle-between-two-angles/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 Apr 2010 13:33:03 GMT</pubDate>
<guid>http://snipplr.com/view/32347/as3-find-the-shortest-rotation-angle-between-two-angles/</guid>
</item>
<item>
<title>(ActionScript 3) Check connection in AS3 - albertomori</title>
<link>http://snipplr.com/view/26028/check-connection-in-as3/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 Jan 2010 16:42:36 GMT</pubDate>
<guid>http://snipplr.com/view/26028/check-connection-in-as3/</guid>
</item>
<item>
<title>(ActionScript 3) AS3: My favorite example of Singleton - albertomori</title>
<link>http://snipplr.com/view/22245/as3-my-favorite-example-of-singleton/</link>
<description><![CDATA[ <p>There are a variety of ways to create a Singleton in AS3 but because Adobe wants to be ECMA compliant, there's no way to do it (like in Java) using a private constructor.  Writing a singleton this way will give you a runtime warning if something goes wrong.</p> ]]></description>
<pubDate>Sat, 31 Oct 2009 17:56:17 GMT</pubDate>
<guid>http://snipplr.com/view/22245/as3-my-favorite-example-of-singleton/</guid>
</item>
<item>
<title>(ActionScript 3) AS3: Align objects on Stage utility - albertomori</title>
<link>http://snipplr.com/view/16883/as3-align-objects-on-stage-utility/</link>
<description><![CDATA[ <p>The way you use this is:  Align.toTopCenter( objectOnStage );</p> ]]></description>
<pubDate>Sat, 11 Jul 2009 11:12:06 GMT</pubDate>
<guid>http://snipplr.com/view/16883/as3-align-objects-on-stage-utility/</guid>
</item>
<item>
<title>(ActionScript 3) AS3: Scroller - albertomori</title>
<link>http://snipplr.com/view/16776/as3-scroller/</link>
<description><![CDATA[ <p>This may not be useful to anyone else as is, but I wanted to keep my typical scrolling code somewhere for easy access. This uses TweenMax as well which obviously isn't included.
This assumes you have content_mc for the stuff to be scrolled, scrollArrow as your dragger, scrollerTrack as the bar the dragger follows, and contentMask to mask your content within a certain area.</p> ]]></description>
<pubDate>Wed, 08 Jul 2009 11:35:45 GMT</pubDate>
<guid>http://snipplr.com/view/16776/as3-scroller/</guid>
</item>
<item>
<title>(ActionScript 3) Angles in Flash: Rotation, Degrees and Radians - albertomori</title>
<link>http://snipplr.com/view/14395/angles-in-flash-rotation-degrees-and-radians/</link>
<description><![CDATA[ <p>Two classes for easy conversion between the different units Flash uses for angles. See my blog for details.</p> ]]></description>
<pubDate>Fri, 24 Apr 2009 21:51:08 GMT</pubDate>
<guid>http://snipplr.com/view/14395/angles-in-flash-rotation-degrees-and-radians/</guid>
</item>
<item>
<title>(ActionScript 3) AS3: My favorite helper functions - albertomori</title>
<link>http://snipplr.com/view/10204/as3-my-favorite-helper-functions/</link>
<description><![CDATA[ <p>These are my favorite helper functions.   getFlashVars() is used to quickly pull out variables from SWFObject2, getDevelopmentMode() is used to determine whether you are working locally on your machine or if the SWF is hosted on a server,  getContextPath() is used to determine what directory the SWF is located</p> ]]></description>
<pubDate>Tue, 02 Dec 2008 11:29:30 GMT</pubDate>
<guid>http://snipplr.com/view/10204/as3-my-favorite-helper-functions/</guid>
</item>
</channel>
</rss>