<?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>*drawlogic &#187; SNIPPETS</title>
	<atom:link href="http://drawlogic.com/category/snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://drawlogic.com</link>
	<description>interactive and game development technologies for the web - flash, flex, unity3d, silverlight, javascript</description>
	<lastBuildDate>Tue, 09 Mar 2010 18:39:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AS3 Flash, Flex and Unity3D Browser Communication and Scripting with Javascript</title>
		<link>http://drawlogic.com/2008/11/28/as3-flash-flex-and-unity3d-browser-communication-with-javascript/</link>
		<comments>http://drawlogic.com/2008/11/28/as3-flash-flex-and-unity3d-browser-communication-with-javascript/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 08:57:15 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[AJAX]]></category>
		<category><![CDATA[APPLICATIONS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[GAMEDEV]]></category>
		<category><![CDATA[GAMES]]></category>
		<category><![CDATA[INTERACTIVE]]></category>
		<category><![CDATA[INTERFACE]]></category>
		<category><![CDATA[JAVASCRIPT]]></category>
		<category><![CDATA[LIBRARIES]]></category>
		<category><![CDATA[OPEN SOURCE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[SILVERLIGHT]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[TOOLS]]></category>
		<category><![CDATA[TUTORIAL]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[unity3d]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[externalinterface]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[integrate]]></category>
		<category><![CDATA[page]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=284</guid>
		<description><![CDATA[I am working with lots of content now that is flash and unity3d in game development for the web, and occasionally systems built in flash, javascript or other have to communicate with Unity3D and vice versa.  You can do this from the server side (WWW/WWWForm class or sockets) OR you can also communicate client side [...]]]></description>
			<content:encoded><![CDATA[<p>I am working with lots of content now that is flash and unity3d in game development for the web, and occasionally systems built in flash, javascript or other have to communicate with Unity3D and vice versa.  You can do this from the server side (<a href="http://unity3d.com/support/documentation/ScriptReference/WWW.html" target="_blank">WWW</a>/<a href="http://unity3d.com/support/documentation/ScriptReference/WWWForm.html" target="_blank">WWWForm </a>class or sockets) OR you can also communicate client side for many things such as sending name value pairs or variables into Unity3D, Flash or the javascript in page as needed. There are some great tools like <a title="UnityObject" href="http://www.unifycommunity.com/wiki/index.php?title=UnityObject" target="_blank">UnityObject</a> that is like swfobject (only you have to update it to work with latest browsers) that make this more simple to send in params and messages. The same can be applied to Silverlight. It is pretty simple all in all but having a sample to start with is good with all these technologies.</p>
<p><a href="http://www.paultondeur.com/2008/11/12/unity3d-communication-with-browser-and-flash/" target="_blank">Paul Tondeur threw togetother a little sample</a> that shows how you can integrate Unity3D, Flash and javascript in the page fairly simply with lots of great demos.  It really is just about passing parameters around into the objects from javascript, then within Flash calling ExternalInterface to call external javascript or within Unity3D calling Application.ExternalCall.</p>
<pre lang="javascript">//Flash adding callback for javascript code
ExternalInterface.addCallback("functionNameInBrowser", functionNameInFlash );</pre>
<pre lang="javascript">//Unity3D calling javascript code
Application.ExternalCall("javascriptFunction", "Parameter1");</pre>
<p>Nothing too tasking but <a href="http://www.paultondeur.com/2008/11/12/unity3d-communication-with-browser-and-flash/" target="_blank">if you want to see samples of this working together from flash, flex, javascript, unity3d</a> then check it out. Zip on over to Paul&#8217;s site to grab the files and more demos and samples. <a title="Download examples" href="http://www.paultondeur.com/files/Unity3DBrowserScripting/Unity3DBrowserScripting.zip">All examples are bundled in one download</a>, which includes all the Unity3D, Flash, Flex, Actionscript and Javascript files.</p>
<p><strong>Here&#8217;s some demos</strong></p>
<ul>
<li><a title="Unity3D Browserchat" href="http://www.paultondeur.com/files/Unity3DBrowserScripting/examples/UnityFlexChat/UnityFlexChat.html" target="_blank">Build a Unity3D &#8220;browserchat&#8221;</a></li>
<li><a title="Clickable Unity3D objects" href="http://www.paultondeur.com/files/Unity3DBrowserScripting/examples/UnityHandleClick/UnityHandleClick.html" target="_blank">Make Unity3D objects clickable and load content in Flash</a></li>
<li><a title="Drag Unity3D objects in Flash" href="http://www.paultondeur.com/files/Unity3DBrowserScripting/examples/DragUnity/DragUnity.html" target="_blank">Drag a rectangle in Flash and drag an cube in Unity3D</a></li>
<li><a title="Advanced Unity3D dragging in Flash" href="http://www.paultondeur.com/files/Unity3DBrowserScripting/examples/DragAdvancedUnity3D/DragAdvancedUnity.html" target="_blank">Add, delete and drag objects from the Flash interface and show this in Unity3D</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2008/11/28/as3-flash-flex-and-unity3d-browser-communication-with-javascript/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HOWTO: SharedObjects for Local Storage AS3</title>
		<link>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/</link>
		<comments>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 10:21:41 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[AMF]]></category>
		<category><![CDATA[APPLICATIONS]]></category>
		<category><![CDATA[ARCHITECT]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[DATA]]></category>
		<category><![CDATA[GAMEDEV]]></category>
		<category><![CDATA[GAMES]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[OPEN SOURCE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[STATE]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[TUTORIAL]]></category>

		<guid isPermaLink="false">http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/</guid>
		<description><![CDATA[Using SharedObjects in Flash is very simple.  Flash has SharedObjects that have been in the player since Flash6 when the introduction of Flash Communication Server which is now Flash Media Server which is releasing version 3 soon (also remote SharedObjects in Red5 is an open source RTMP media server that is based on Flash [...]]]></description>
			<content:encoded><![CDATA[<p>Using SharedObjects in Flash is very simple.  Flash has SharedObjects that have been in the player since Flash6 when the introduction of Flash Communication Server which is now Flash Media Server which is releasing version 3 soon (also remote SharedObjects in <a href="http://osflash.org/red5" target="_blank">Red5</a> is an open source RTMP media server that is based on Flash Media Server).  So we can thank this release for SharedObjects, Camera objects, Audio, lots of the NetConnections, protocol enhancements and many other things. However to keep the tips simple we will just touch on the local usage and post a series of posts on these objects.</p>
<p><b>SharedObjects locally and remote have changed the way offline is thought about and are the backbone of many offline systems and prototypes.</b>  They have been influential in moving storage locally to remote in a lightweight AMF0 or AMF3 format.</p>
<p><b>SharedObject is in the <a href="http://livedocs.adobe.com/flex/2/langref/flash/net/package-detail.html">flash.net</a> namespace in AS3.</b></p>
<p><b>Here we show how to use the local version of a SharedObject to store data in the most simple form.  </b></p>
<pre lang="javascript">
import flash.net.SharedObject;
var so:SharedObject = SharedObject.getLocal("userData");
so.data.username= "user1377";
so.data.pwdhash= "[hash] or pwd";
so.flush(); // writes changes to disk</pre>
<p>You can see this is extremely simple to store data.<b></b><b>Here we show how to use the local version of a SharedObject to retrieve data in the most simple form.  </b></p>
<pre lang="javascript">
import flash.net.SharedObject;
var so:SharedObject = SharedObject.getLocal("userData");
var username:String = so.data.username;
var pwdhash:String = so.data.pwdhash;</pre>
<p>That is it!  In the most basic form SharedObjects are more simple than cookies and also are quite nice living outside the bounds of the cookies folder.  If a user deletes all cookies it will not delete the SharedObjects.  To delete SharedObjects you need to roght click on the Flash player, go to Settings and delete the objects there.<b></b><b>You can store any type of data Flash supports from objects to numbers to strings in the SharedObject data.  </b></p>
<pre lang="javascript">
import flash.net.SharedObject;
var so:SharedObject = SharedObject.getLocal("userData");
so.data.username= "user1377";
so.data.uid= new Number(1337);
var obj:Object = new Object();
obj.prop = "value";
so.data.userobj= obj;
so.flush(); // writes changes to disk
</pre>
<p>For large applications SharedObjects local are great because users can have their SharedObject space set to a high amount of space or unlmited for large offline type apps or more complex apps stored in a state object. It gets interesting when you pass this to the server in AMF or extremely compact AMF3 format to a remote stored object, via remoting, Shared Object events or any way you want to.We will be posting more on remote shared objects and some of the other tools such as Camera and Streams for AS3 over the coming weeks and deeper into the Sync Events for remote and local SOs.<b><a href="http://www.sephiroth.it/python/solreader.php" target="_blank">Sephiroth has a great Python tool to peer into the SOs on disk</a></b>.</p>
<blockquote><p>The first version of SharedObject Reader was written in <a href="http://www.python.org/">python 2.2</a>.<br />
This new version is written in <b>C#</b> (C Sharp) as it&#8217;s now part of <b><a href="http://www.flashdevelop.org/">FlashDevelop</a></b> editor.</p></blockquote>
<p>Red5 also does this as well as many AMF kits.</p>
<p><b>Sync Events for SharedObject (as they change they launch a sync event) </b></p>
<p><span class="label">Event object type: </span><a href="http://livedocs.adobe.com/flex/2/langref/flash/events/SyncEvent.html" target="_blank"><code>flash.events.SyncEvent</code></a><br />
<span class="label">SyncEvent.type property = </span><a href="http://livedocs.adobe.com/flex/2/langref/flash/events/SyncEvent.html#SYNC" target="_blank"><code>flash.events.SyncEvent.SYNC</code></a></p>
<p><b>Read more at adobe docs:</b></p>
<p><a href="http://livedocs.adobe.com/flex/2/langref/flash/net/SharedObject.html#includeExamplesSummary" target="_blank">flash.net.SharedObject</a></p>
<p><b>Sample from AS3 docs showing usage</b></p>
<pre lang="javascript">
package {
    import flash.display.Sprite;
    import flash.events.MouseEvent;
    import flash.events.NetStatusEvent;
    import flash.net.SharedObject;
    import flash.net.SharedObjectFlushStatus;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFieldType;

    public class SharedObjectExample extends Sprite {

        private var mySo:SharedObject;

        public function SharedObjectExample() {
            buildUI();
            saveBtn.addEventListener(MouseEvent.CLICK, saveValue);
            clearBtn.addEventListener(MouseEvent.CLICK, clearValue);

            mySo = SharedObject.getLocal("application-name");
            output.appendText("SharedObject loaded...\n");
            output.appendText("loaded value: " + mySo.data.savedValue + "\n\n");
        }

         private function saveValue(event:MouseEvent):void {
            output.appendText("saving value...\n");
            mySo.data.savedValue = input.text;

            var flushStatus:String = null;
            try {
                flushStatus = mySo.flush(10000);
            } catch (error:Error) {
                output.appendText("Error...Could not write SharedObject to disk\n");
            }
            if (flushStatus != null) {
                switch (flushStatus) {
                    case SharedObjectFlushStatus.PENDING:
                        output.appendText("Requesting permission to save object...\n");
                        mySo.addEventListener(NetStatusEvent.NET_STATUS, onFlushStatus);
                        break;
                    case SharedObjectFlushStatus.FLUSHED:
                        output.appendText("Value flushed to disk.\n");
                        break;
                }
            }
            output.appendText("\n");
        }

        private function clearValue(event:MouseEvent):void {
            output.appendText("Cleared saved value...Reload SWF and the value should be \"undefined\".\n\n");
            delete mySo.data.savedValue;
        }

        private function onFlushStatus(event:NetStatusEvent):void {
            output.appendText("User closed permission dialog...\n");
            switch (event.info.code) {
                case "SharedObject.Flush.Success":
                    output.appendText("User granted permission -- value saved.\n");
                    break;
                case "SharedObject.Flush.Failed":
                    output.appendText("User denied permission -- value not saved.\n");
                    break;
            }
            output.appendText("\n");

            mySo.removeEventListener(NetStatusEvent.NET_STATUS, onFlushStatus);
        }

        // UI elements
        private var inputLbl:TextField;
        private var input:TextField;
        private var output:TextField;
        private var saveBtn:Sprite;
        private var clearBtn:Sprite;

        private function buildUI():void {
            // input label
            inputLbl = new TextField();
            addChild(inputLbl);
            inputLbl.x = 10;
            inputLbl.y = 10;
            inputLbl.text = "Value to save:";

            // input TextField
            input = new TextField();
            addChild(input);
            input.x = 80;
            input.y = 10;
            input.width = 100;
            input.height = 20;
            input.border = true;
            input.background = true;
            input.type = TextFieldType.INPUT;

            // output TextField
            output = new TextField();
            addChild(output);
            output.x = 10;
            output.y = 35;
            output.width = 250;
            output.height = 250;
            output.multiline = true;
            output.wordWrap = true;
            output.border = true;
            output.background = true;

            // Save button
            saveBtn = new Sprite();
            addChild(saveBtn);
            saveBtn.x = 190;
            saveBtn.y = 10;
            saveBtn.useHandCursor = true;
            saveBtn.graphics.lineStyle(1);
            saveBtn.graphics.beginFill(0xcccccc);
            saveBtn.graphics.drawRoundRect(0, 0, 30, 20, 5, 5);
            var saveLbl:TextField = new TextField();
            saveBtn.addChild(saveLbl);
            saveLbl.text = "Save";
            saveLbl.selectable = false;

            // Clear button
            clearBtn = new Sprite();
            addChild(clearBtn);
            clearBtn.x = 230;
            clearBtn.y = 10;
            clearBtn.useHandCursor = true;
            clearBtn.graphics.lineStyle(1);
            clearBtn.graphics.beginFill(0xcccccc);
            clearBtn.graphics.drawRoundRect(0, 0, 30, 20, 5, 5);
            var clearLbl:TextField = new TextField();
            clearBtn.addChild(clearLbl);
            clearLbl.text = "Clear";
            clearLbl.selectable = false;
        }
    }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2008/01/10/howto-sharedobjects-for-local-storage-as3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Uploading Multiple Selectable Files with Flash9 and AS3</title>
		<link>http://drawlogic.com/2007/08/02/uploading-multiple-selectable-files-with-flash9-and-as3/</link>
		<comments>http://drawlogic.com/2007/08/02/uploading-multiple-selectable-files-with-flash9-and-as3/#comments</comments>
		<pubDate>Thu, 02 Aug 2007 09:06:44 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[INTERFACE]]></category>
		<category><![CDATA[SNIPPET]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[USER EXPERIENCE]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/2007/08/02/uploading-multiple-selectable-files-with-flash9-and-as3/</guid>
		<description><![CDATA[Uploading on the internet is pretty arcane.  Either you have to individually select each file with the browse file input, install some activex control or use java to select multiple files. It always ends up being a tedious action.
But Flash is the new champ in file upload for the web, as with video, Flash [...]]]></description>
			<content:encoded><![CDATA[<p>Uploading on the internet is pretty arcane.  Either you have to individually select each file with the browse file input, install some activex control or use java to select multiple files. It always ends up being a tedious action.</p>
<p><strong>But Flash is the new champ in file upload for the web, as with video, Flash just makes it simple. </strong>The <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000320.html" target="_blank">FileReferenceList </a>class and its browse method pop up the <strong>multiple file select box</strong> where the user can hold CTRL or SHIFT to select multiple files and watch them all drop in rather than having to painstakingly select them one by one and not having to install an unknown activex or java applet.</p>
<p><strong>Here&#8217;s script to upload multiple files (or get the multiple file select box).</strong></p>
<pre lang="javascript">
var fileRefList:FileReferenceList = new FileReferenceList();
fileRefList.addEventListener(Event.SELECT, selectHandler);
fileRefList.browse();

function selectHandler(event:Event):void
{
    var request:URLRequest = new URLRequest(&quot;http://www.[yourdomain].com/upload/&quot;);
    var file:FileReference;
    var files:FileReferenceList = FileReferenceList(event.target);
    var selectedFileArray:Array = files.fileList;
    for (var i:uint = 0; i < selectedFileArray.length; i++)
    {
        file = FileReference(selectedFileArray[i]);
        file.addEventListener(Event.COMPLETE, completeHandler);
        try
        {
            file.upload(request);
        }
        catch (error:Error)
        {
            trace("Unable to upload files.");
        }
    }
}
function completeHandler(event:Event):void
{
    trace("uploaded";);
}</pre>
<p>[<a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000320.html" target="_blank">source]</p>
<p><a href="http://swfupload.mammon.se/" target="_blank"><strong>SWFUpload</strong> </a>is based on this and is a nice AJAX based script that uses ExternalInterface in AS3 to pass the javascript presentation to the flash uploader.</p>
<p>The<strong> multiple file select</strong>, <strong>checking the file size before uploading</strong> and the ExternalInterface access for Actionscript to talk to Javascript <strong>makes Flash the best option for online file uploads for the web yet</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2007/08/02/uploading-multiple-selectable-files-with-flash9-and-as3/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Pageturn in Papervision3D</title>
		<link>http://drawlogic.com/2007/04/19/pageturn-in-papervision3d/</link>
		<comments>http://drawlogic.com/2007/04/19/pageturn-in-papervision3d/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 00:35:52 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[PAPERVISION]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[VECTOR]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/2007/04/19/pageturn-in-papervision3d/</guid>
		<description><![CDATA[Well it is &#8221;pageturn&#8221; week here at { drawlogic } but this is worthy.  Its the first papervision pageturn zero point nine is now famous.
source code
I have a feeling papervision3D is responsible for a surge in new blogs.  It is an exciting technology but our processors are probably not too happy about all the extra work. 
]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.zeropointnine.com/blog/3d-page-curl-effect-using-papervision3d/trackback/"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/pageturnpaper.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a>Well it is &#8221;pageturn&#8221; week here at { drawlogic } but this is worthy.  Its the <a target="_blank" href="http://www.zeropointnine.com/blog/3d-page-curl-effect-using-papervision3d/trackback/">first papervision pageturn</a> zero point nine is now famous.</p>
<p><a target="_blank" href="http://www.zeropointnine.com/blog/assets_code/CurlingPlane.as.txt">source code</a></p>
<p>I have a feeling <a target="_blank" href="http://blog.papervision3d.org/">papervision3D </a>is responsible for a surge in new blogs.  It is an exciting technology but our processors are probably not too happy about all the extra work. </p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2007/04/19/pageturn-in-papervision3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ByteArray&#8217;s Raster.as Class Faster than the Adobe Graphics Libraries</title>
		<link>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/</link>
		<comments>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 10:42:40 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[BENCHMARK]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[DRAWING]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[PERFORMANCE]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[VECTOR]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/</guid>
		<description><![CDATA[ByteArray has been developing the Raster class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).
Here&#8217;s his latest listing of what it supports:
V1.3 API :
line()
triangle()
filledTri()
aaLine()
circle()
aaCircle()
quadBezier()
cubicBezier()
This class use
rastering : Bresenham algorithm
anti-alias rendering : Xiaolin [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.bytearray.org/?p=67"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/capt_raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a><a href="http://www.bytearray.org/?p=67">ByteArray</a> has been developing the <a target="_blank" href="http://www.bytearray.org/?p=67">Raster</a> class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).</p>
<p>Here&#8217;s his latest listing of what it supports:</p>
<p><strong>V1.3 API :</strong><br />
line()<br />
triangle()<br />
filledTri()<br />
aaLine()<br />
circle()<br />
aaCircle()<br />
quadBezier()<br />
cubicBezier()</p>
<p>This class use<br />
rastering : <a target="_blank" href="http://en.wikipedia.org/wiki/Bresenham's_line_algorithm">Bresenham algorithm</a><br />
anti-alias rendering : <a target="_blank" href="http://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm">Xiaolin Wu algorithm</a></p>
<p><strong>Authors </strong>(contribution) :<br />
Didier Brun (original class)<br />
<a target="_blank" href="http://blog.generalrelativity.org/">Drew Cummins</a> (bezier curves)</p>
<p><a target="_blank" href="http://photobucket.com"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a>Also check out a demo on the <a target="_blank" href="http://lab.generalrelativity.org/raster/">generalrelativity</a> blog with some added beziers.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ByteArray&#8217;s Raster.as Class Faster than the Adobe Graphics Libraries</title>
		<link>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-2/</link>
		<comments>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-2/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 10:42:40 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[BENCHMARK]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[DRAWING]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[PERFORMANCE]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[VECTOR]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/</guid>
		<description><![CDATA[ByteArray has been developing the Raster class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).
Here&#8217;s his latest listing of what it supports:
V1.3 API :
line()
triangle()
filledTri()
aaLine()
circle()
aaCircle()
quadBezier()
cubicBezier()
This class use
rastering : Bresenham algorithm
anti-alias rendering : Xiaolin [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.bytearray.org/?p=67"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/capt_raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a><a href="http://www.bytearray.org/?p=67">ByteArray</a> has been developing the <a target="_blank" href="http://www.bytearray.org/?p=67">Raster</a> class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).</p>
<p>Here&#8217;s his latest listing of what it supports:</p>
<p><strong>V1.3 API :</strong><br />
line()<br />
triangle()<br />
filledTri()<br />
aaLine()<br />
circle()<br />
aaCircle()<br />
quadBezier()<br />
cubicBezier()</p>
<p>This class use<br />
rastering : <a target="_blank" href="http://en.wikipedia.org/wiki/Bresenham's_line_algorithm">Bresenham algorithm</a><br />
anti-alias rendering : <a target="_blank" href="http://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm">Xiaolin Wu algorithm</a></p>
<p><strong>Authors </strong>(contribution) :<br />
Didier Brun (original class)<br />
<a target="_blank" href="http://blog.generalrelativity.org/">Drew Cummins</a> (bezier curves)</p>
<p><a target="_blank" href="http://photobucket.com"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a>Also check out a demo on the <a target="_blank" href="http://lab.generalrelativity.org/raster/">generalrelativity</a> blog with some added beziers.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ByteArray&#8217;s Raster.as Class Faster than the Adobe Graphics Libraries</title>
		<link>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-3/</link>
		<comments>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-3/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 10:42:40 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[BENCHMARK]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[DRAWING]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[PERFORMANCE]]></category>
		<category><![CDATA[SNIPPETS]]></category>
		<category><![CDATA[VECTOR]]></category>

		<guid isPermaLink="false">http://drawk.wordpress.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries/</guid>
		<description><![CDATA[ByteArray has been developing the Raster class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).
Here&#8217;s his latest listing of what it supports:
V1.3 API :
line()
triangle()
filledTri()
aaLine()
circle()
aaCircle()
quadBezier()
cubicBezier()
This class use
rastering : Bresenham algorithm
anti-alias rendering : Xiaolin [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.bytearray.org/?p=67"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/capt_raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a><a href="http://www.bytearray.org/?p=67">ByteArray</a> has been developing the <a target="_blank" href="http://www.bytearray.org/?p=67">Raster</a> class which has an impressive demo of a raster engine to draw rather than the Adobe Graphics library included with Flash and it is much faster albeit pixelated (the nature of raster).</p>
<p>Here&#8217;s his latest listing of what it supports:</p>
<p><strong>V1.3 API :</strong><br />
line()<br />
triangle()<br />
filledTri()<br />
aaLine()<br />
circle()<br />
aaCircle()<br />
quadBezier()<br />
cubicBezier()</p>
<p>This class use<br />
rastering : <a target="_blank" href="http://en.wikipedia.org/wiki/Bresenham's_line_algorithm">Bresenham algorithm</a><br />
anti-alias rendering : <a target="_blank" href="http://en.wikipedia.org/wiki/Xiaolin_Wu's_line_algorithm">Xiaolin Wu algorithm</a></p>
<p><strong>Authors </strong>(contribution) :<br />
Didier Brun (original class)<br />
<a target="_blank" href="http://blog.generalrelativity.org/">Drew Cummins</a> (bezier curves)</p>
<p><a target="_blank" href="http://photobucket.com"><img border="0" src="http://i81.photobucket.com/albums/j223/drawkbox/raster.png" alt="Photo Sharing and Video Hosting at Photobucket" style="float:right;" /></a>Also check out a demo on the <a target="_blank" href="http://lab.generalrelativity.org/raster/">generalrelativity</a> blog with some added beziers.</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2007/04/18/bytearrays-rasteras-class-faster-than-the-adobe-graphics-libraries-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
