<?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; API</title>
	<atom:link href="http://drawlogic.com/tag/api/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>Thu, 22 Dec 2011 21:55:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Adobe AIR and Flash 3D API &#8216;Molehill&#8217; Preview Released</title>
		<link>http://drawlogic.com/2011/02/27/adobe-air-and-flash-3d-api-molehill-preview-released/</link>
		<comments>http://drawlogic.com/2011/02/27/adobe-air-and-flash-3d-api-molehill-preview-released/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 01:09:09 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[3d]]></category>
		<category><![CDATA[3D ENGINES]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[ADOBE]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[GAMEDEV]]></category>
		<category><![CDATA[molehill]]></category>
		<category><![CDATA[unity]]></category>
		<category><![CDATA[unity 3d]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=974</guid>
		<description><![CDATA[At the Flash Games Summit today there was good news from Unity and Adobe about the Flash 3D API called Molehill.  Adobe&#8217;s Flash 3D API Molehill public preview was released and Unity announced they will be adding export support for it. New features available in the current Incubator build include: “Molehill” 3D APIs for Flash [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Flash 3d API Molehill" src="http://i81.photobucket.com/albums/j223/drawkbox/Flash_Professional_CS5_mnemonic_150x150.gif" alt="" width="150" height="148" />At the Flash Games Summit today there was good news from Unity and <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/">Adobe about the Flash 3D API called Molehill</a>.  <a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/">Adobe&#8217;s Flash 3D API Molehill public preview was released</a> and <a href="http://blogs.unity3d.com/2011/02/27/unity-flash-3d-on-the-web/">Unity announced they will be adding export support for it</a>.</p>
<blockquote><p>New features available in the current Incubator build include:</p>
<ul>
<li><a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/features/molehill.html"><strong>“Molehill” 3D APIs for Flash Player and AIR</strong></a> — A new set of low-level, GPU-accelerated 3D APIs that enable advanced 3D experiences across devices through the Adobe Flash Platform runtimes.</li>
<li><strong>Cubic Bezier Curves</strong> — Using the cubicCurveTo drawing API, developers can easily create cubic Beziers without requiring custom ActionScript code.</li>
</ul>
</blockquote>
<p>This is really a new era of browser based game development support that is going to be very exciting. <a href="http://www.eurekascastle.com/?p=117">It was announced at the Flash Games Summit</a> by <a href="http://bytearray.org/" target="_blank">Thibault Imbert</a> (Adobe Product Manager) and <a href="http://theflashblog.com/" target="_blank">Lee Brimelow</a> (Adobe Platform Evangelist) after they explained and showed examples to the audience of what “Molehill” could do for flash games.</p>
<ul>
<li><a href="http://labs.adobe.com/technologies/flashplatformruntimes/incubator/">Flash 3D API Molehill Preview</a></li>
<li><a href="http://labs.adobe.com/downloads/flashplatformruntimes_incubator.html">Flash 3D API Molehill Download</a></li>
</ul>
<p>Thibault has a <a href="http://www.bytearray.org/?p=2810">list of available Molehill enabled 3D engines</a> already:</p>
<ul>
<li><a title="Alternativa3D" href="http://alternativaplatform.com/en/" target="_blank">Alternativa3D</a></li>
<li><a title="Away3D" href="http://www.away3d.com/" target="_blank">Away3D</a></li>
<li><a title="CopperCube" href="http://www.ambiera.com/coppercube/" target="_blank">Coppercube</a></li>
<li><a title="Flare3D" href="http://www.flare3d.com/" target="_blank">Flare3D</a></li>
<li><a title="Minko" href="http://aerys.in/minko" target="_blank">Minko</a></li>
<li><a title="Sophie3D" href="http://www.sophie3d.com/website/index_en.php" target="_blank">Sophie3D</a></li>
<li><a title="Yogurt3D" href="http://www.yogurt3d.com/" target="_blank">Yogurt3D</a></li>
<li><a title="Zest3D" href="http://zest3d.digital-glue.com/" target="_blank">Zest3D</a></li>
</ul>
<p>Also a test of hardware accelerated molehill vs software rendered flash:</p>
<ul>
<li><a title="2D Animation with the display list" href="http://www.bytearray.org/wp-content/projects/molehill2d/displaylist/" target="_blank">Check 2D animation with the display list (check your CPU usage)</a></li>
<li><a title="2D Animation with Molehill" href="http://www.bytearray.org/wp-content/projects/molehill2d/molehill/" target="_blank">Check 2D animation with Molehill (check your CPU usage)</a></li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2011/02/27/adobe-air-and-flash-3d-api-molehill-preview-released/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AS3 Library for OAuth with Twitter for AIR Apps</title>
		<link>http://drawlogic.com/2009/07/08/as3-library-for-oauth-with-twitter-for-air-apps/</link>
		<comments>http://drawlogic.com/2009/07/08/as3-library-for-oauth-with-twitter-for-air-apps/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 12:01:49 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[APPLICATIONS]]></category>
		<category><![CDATA[ARCHITECT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[OPEN SOURCE]]></category>
		<category><![CDATA[STANDARDS]]></category>
		<category><![CDATA[SYNDICATION]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[CODE]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=592</guid>
		<description><![CDATA[AIR is very popular for creating twitter clients, Sönke Rohde just made it much easier to make AIR apps for twitter with an AS3 library for Twitter. This library is built on top of core oauth as3 library by iotashin.  Core OAuth as3 library is a standard OAuth library this can be used for your [...]]]></description>
			<content:encoded><![CDATA[<p>AIR is very popular for creating twitter clients, <a href="http://soenkerohde.com/2009/07/high-level-as3flex-library-for-oauth-with-twitter-from-air/" target="_blank">Sönke Rohde just made it much easier to make AIR apps for twitter</a> with an <a href="http://github.com/srohde/OAuth/tree/master" target="_blank">AS3 library for Twitter</a>. This library is built on top of <a href="http://www.iotashan.com/index.php/2008/04/28/oauth-actionscript-library/" target="_blank">core oauth as3 library</a> <a href="http://www.iotashan.com/index.php/2008/04/28/oauth-actionscript-library/" target="_blank">by iotashin</a>.  Core <a href="http://oauth.net/" target="_blank">OAuth</a> as3 library is a standard OAuth library this can be used for your own OAuth backends or connecting to other OAuth services as well.</p>
<p>A very nice feature of this library, in addition to being coded cleanly and as3 style, is the ability to have the Twitter OAuth page render inside of Flash.</p>
<p style="padding-left: 30px;">Instead of opening the Twitter authorization page in the browser the library also contains OAuthLoader which is a wrapper around HTMLLoader which enables to directly show the authorization page within an AIR window:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// use this in the requestTokenHandler instead of navigateToURL</span>
<span style="color: #000000; font-weight: bold;">var</span> loader:OAuthLoader = <span style="color: #000000; font-weight: bold;">new</span> OAuthLoader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>request<span style="color: #66cc66;">&#41;</span>;
loader.<span style="color: #006600;">percentWidth</span> = <span style="color: #cc66cc;">100</span>;
loader.<span style="color: #006600;">percentHeight</span> = <span style="color: #cc66cc;">100</span>;
<span style="color: #000000; font-weight: bold;">var</span> w:Window = <span style="color: #000000; font-weight: bold;">new</span> Window<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
w.<span style="color: #0066CC;">width</span> = <span style="color: #cc66cc;">800</span>;
w.<span style="color: #0066CC;">height</span> = <span style="color: #cc66cc;">400</span>;
w.<span style="color: #006600;">title</span> = req.<span style="color: #0066CC;">url</span>;
w.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>loader<span style="color: #66cc66;">&#41;</span>;
w.<span style="color: #006600;">open</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<ul>
<li><a href="http://www.iotashan.com/">Shannon Hicks</a> <a href="http://www.iotashan.com/index.php/2008/04/28/oauth-actionscript-library/">core oauth as3 library</a></li>
<li><a href="http://github.com/srohde/OAuth/tree/master">High level AS3/Flex library for OAuth</a></li>
<li><a href="http://code.google.com/p/oauth-as3/" target="_blank">oauth-as3 Google Code page</a></li>
<li><a href="http://oauth.net/">OAuth</a></li>
<li><a href="http://apiwiki.twitter.com/OAuth-FAQ">Twitter OAuth FAQ</a></li>
<li><a href="http://apiwiki.twitter.com/Twitter-API-Documentation">Twitter API Documentation</a></li>
<li><a href="http://www.hueniverse.com/hueniverse/2007/10/beginners-gui-1.html">Getting Started with OAuth</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2009/07/08/as3-library-for-oauth-with-twitter-for-air-apps/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AS3 YouTube Chromeless Player in Flash/Flex</title>
		<link>http://drawlogic.com/2008/11/08/as3-youtube-chromeless-player-in-flashflex/</link>
		<comments>http://drawlogic.com/2008/11/08/as3-youtube-chromeless-player-in-flashflex/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 19:29:27 +0000</pubDate>
		<dc:creator>drawk</dc:creator>
				<category><![CDATA[ACTIONSCRIPT]]></category>
		<category><![CDATA[ACTIONSCRIPT3]]></category>
		<category><![CDATA[ARCHITECT]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[DEVELOPMENT]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[FLEX]]></category>
		<category><![CDATA[JAVASCRIPT]]></category>
		<category><![CDATA[OPEN SOURCE]]></category>
		<category><![CDATA[PROGRAMMING]]></category>
		<category><![CDATA[TECHNOLOGY]]></category>
		<category><![CDATA[USER EXPERIENCE]]></category>
		<category><![CDATA[VIDEO]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[chromeless]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://drawlogic.com/?p=243</guid>
		<description><![CDATA[The YouTube Chromeless Player works with AS3/ActionScript 3. The demo shows great examples of the player with just the window canvas (chromeless) from both javascript and inside of flash. The project is hosted on Google Code [youtubechromelesswrapper-as3] Looks like they maybe had a contribution for this, so do it where you can. This is something [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://youtubechromelesswrapper-as3.googlecode.com/svn/trunk/as3wrapper/deploy/index.html" target="_blank">YouTube Chromeless Player </a>works with AS3/ActionScript 3.</p>
<p><img class="alignnone" title="AS3 youtube player" src="http://farm4.static.flickr.com/3041/3012824711_ecc5c4a844_o.jpg" alt="" width="600" height="262" /></p>
<p>The <a href="http://youtubechromelesswrapper-as3.googlecode.com/svn/trunk/as3wrapper/deploy/index.html" target="_blank">demo</a> shows great examples of the player with just the window canvas (chromeless) from both javascript and inside of flash.</p>
<p>The project is hosted on <a href="http://code.google.com/p/youtubechromelesswrapper-as3/" target="_blank">Google Code</a> [youtubechromelesswrapper-as3]</p>
<p>Looks like they maybe had a contribution for this, so do it where you can.</p>
<blockquote><p>This is something we&#8217;ve been wanting to provide for a while, and the YouTube API team greatly appreciates the work of developer Matthew Richmond of <a href="http://choppingblock.com/" target="_blank">The Chopping Block</a> for making it happen. Thanks Matthew!</p></blockquote>
<p><strong>Links</strong></p>
<ul>
<li><a href="http://youtubechromelesswrapper-as3.googlecode.com/svn/trunk/as3wrapper/deploy/index.html" target="_blank">Demo</a></li>
<li><a href="http://code.google.com/p/youtubechromelesswrapper-as3/" target="_blank">Google Code</a> [youtubechromelesswrapper-as3]</li>
<li><a href="http://code.google.com/apis/youtube/articles/youtube_as3_chromeless.html" target="_blank">Article </a>about the library</li>
<li><a href="http://youtubechromelesswrapper-as3.googlecode.com/files/ActionScript_3_YouTube_Wrapper_v1.0.zip" target="_blank">Download the source</a> (get from google code recommended)</li>
<li><a href="http://code.google.com/apis/youtube/js_api_reference.html" target="_blank">Javascript Player Reference</a></li>
</ul>
<h2>Capabilities/API</h2>
<h3 id="public_methods">Public Methods</h3>
<dl>
<dt id="loadVideoById"><code>player.loadVideoById(id:String, startSeconds:Number = 0):void</code></dt>
<dd>Loads and plays video based on specified id.</dd>
<dt id="cueNewVideo"><code>player.cueNewVideo(id:String, startSeconds:Number = 0):void</code></dt>
<dd>Loads but does not automatically play video based on specified id.</dd>
<dt id="clearVideo"><code>player.clearVideo():void</code></dt>
<dd>Clears currently cued/loaded video.</dd>
<dt id="setSize"><code>player.setSize(w:Number, h:Number):void</code></dt>
<dd>Sets the size of YouTubePlayer instance.</dd>
<dt id="play"><code>player.play():void</code></dt>
<dd>Plays the currently cued/loaded video.</dd>
<dt id="pause"><code>player.pause():void</code></dt>
<dd>Pauses the currently cued/loaded video.</dd>
<dt id="stop"><code>player.stop():void</code></dt>
<dd>Stops the currently cued/loaded video.</dd>
<dt id="seekTo"><code>player.seekTo(seconds:Number):void</code></dt>
<dd>Seeks to specified time within the currently cued/loaded video.</dd>
<dt id="getPlayerState"><code>player.getPlayerState():String</code></dt>
<dd>Returns the current state of the currently cued/loaded video.</dd>
<dt id="getBytesLoaded"><code>player.getBytesLoaded():Number</code></dt>
<dd>Returns the value of current bytes loaded of the currently cued/loaded video.</dd>
<dt id="getBytesTotal"><code>player.getBytesTotal():Number</code></dt>
<dd>Returns the value of total bytes loaded of the currently cued/loaded video.</dd>
<dt id="getCurrentTime"><code>player.getCurrentTime():Number</code></dt>
<dd>Returns the current position in time of the currently cued/loaded video.</dd>
<dt id="getDuration"><code>player.getDuration():Number</code></dt>
<dd>Returns the current duration of the currently cued/loaded video.</dd>
<dt id="getStartBytes"><code>player.getStartBytes():Number</code></dt>
<dd>Returns the start bytes of the currently cued/loaded video.</dd>
<dt id="setVolume"><code>player.setVolume(newVolume:Number):void</code></dt>
<dd>Sets the volume of the currently cued/loaded video.</dd>
<dt id="getVolume"><code>player.getVolume():Number</code></dt>
<dd>Returns the current volume of the currently cued/loaded video.</dd>
<dt id="mute"><code>player.mute():void</code></dt>
<dd>Stores the current volume and changes the volume of the currently cued/loaded video to 0.</dd>
<dt id="unmute"><code>player.unmute():void</code></dt>
<dd>Returns the volume of the currently cued/loaded video to the last stored value when muted.</dd>
<dt id="getEmbedCode"><code>player.getEmbedCode():String</code></dt>
<dd>Returns the current YouTube embed code of the currently cued/loaded video.</dd>
<dt id="getVideoUrl"><code>player.getVideoUrl():String</code></dt>
<dd>Returns the current YouTube video url of the currently cued/loaded video.</dd>
</dl>
<h3 id="events">Events</h3>
<dl>
<dt id="loaded"><code>YouTubeLoaderEvent.LOADED</code></dt>
<dd>Fired once the Chromeless Player has successfully completed loading and is ready to accept operations calls.</dd>
<dt id="state_change"><code>YouTubeLoaderEvent.STATE_CHANGE</code></dt>
<dd>Fired whenever the player&#8217;s state changes. The YouTubeLoader class translates the JavaScript API numbers to their related string values, the YouTubeLoaderEvent class stores the current event in a variable called <code>state</code>. Possible values are unstarted, ended, playing, paused, buffering, video cued. When the SWF is first loaded, it will broadcast an unstarted event. When the video is cued and ready to play, it will broadcast a video cued event.</dd>
<dt id="io_error"><code>YouTubeLoaderEvent.IO_ERROR</code></dt>
<dd>Fired when an error in the player occurs. There are two error codes possible: 100 is broadcasted when the video requested is not found. This occurs when a video has been removed (for any reason), or it has been marked as private. 101 is broadcasted when the video requested does not allow playback in the embedded players.</dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://drawlogic.com/2008/11/08/as3-youtube-chromeless-player-in-flashflex/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

