<?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>NewSourceMedia Blog &#187; initiate</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/initiate/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +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>Tweening color using AS3 Tweener Class</title>
		<link>http://newsourcemedia.com/blog/tweening-color-using-as3-tweener-class/</link>
		<comments>http://newsourcemedia.com/blog/tweening-color-using-as3-tweener-class/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 16:28:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[color shortcuts]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[initiate]]></category>
		<category><![CDATA[tween color]]></category>
		<category><![CDATA[tweener]]></category>
		<category><![CDATA[tweening]]></category>

		<guid isPermaLink="false">http://am3media.com/site/?p=142</guid>
		<description><![CDATA[// import as3 tweener import caurina.transitions.*; // to get the color tweener to work, import ColorShortcuts properties import caurina.transitions.properties.ColorShortcuts; // initiate the ColorShortcuts ColorShortcuts.init(); // define a spite var mySprite:Sprite = new Sprite(); mySprite.x = 50; mySprite.y = 50; mySprite.graphics.lineStyle(); &#8230; <a href="http://newsourcemedia.com/blog/tweening-color-using-as3-tweener-class/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre lang="actionscript">// import as3 tweener
import caurina.transitions.*;

// to get the color tweener to work, import ColorShortcuts properties
import caurina.transitions.properties.ColorShortcuts;
// initiate the ColorShortcuts
ColorShortcuts.init();

// define a spite
var mySprite:Sprite = new Sprite();
mySprite.x = 50;
mySprite.y = 50;
mySprite.graphics.lineStyle();
mySprite.graphics.beginFill(0xff0000);
mySprite.graphics.drawRect(0,0,200,100);
addChild(mySprite);

// add the mouse actions
mySprite.buttonMode = true;
mySprite.addEventListener(MouseEvent.MOUSE_OVER, makeBlue);
mySprite.addEventListener(MouseEvent.MOUSE_OUT, makeRed);

// define the interactive effects
function makeBlue(e:MouseEvent):void{
Tweener.addTween(mySprite, {_color:0x0000ff, time:1, transition:"easeOutQuart"});
}
function makeRed(e:MouseEvent):void{
Tweener.addTween(mySprite, {_color:null, time:1, transition:"easeOutQuart"});
}
</pre>]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/tweening-color-using-as3-tweener-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix flash focus to activate key clicks.</title>
		<link>http://newsourcemedia.com/blog/fix-flash-focus-to-activate-key-clicks/</link>
		<comments>http://newsourcemedia.com/blog/fix-flash-focus-to-activate-key-clicks/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Workarounds]]></category>
		<category><![CDATA[activate]]></category>
		<category><![CDATA[active]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[controler]]></category>
		<category><![CDATA[flash problem]]></category>
		<category><![CDATA[initiate]]></category>
		<category><![CDATA[key clicks]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[keys]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[navagation]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2007/12/22/fix-flash-focus-to-activate-key-clicks/</guid>
		<description><![CDATA[Problem with flash not working with key clicks. Using the JavaScript to focus the flash on load. Question: How do I initiate the flash with out using the mouse click. For example I built a flash game utilizes the keyboard &#8230; <a href="http://newsourcemedia.com/blog/fix-flash-focus-to-activate-key-clicks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Problem with flash not working with key clicks. Using the JavaScript to focus the flash on load.
<span id="more-160"></span>

<strong>Question:</strong> How do I initiate the flash with out using the mouse click. For example I built a flash game utilizes the keyboard as the main controller and I want the flash game to listen for the key clicks to move the item in the game. The problem is when the page loads, flash does not have the focus so clicking on any key only controls the browser window and not the flash.

<strong>Answer:</strong> Use a JavaScript call on the body tag “onLoad” event like below to set the focus on the flash game using the flash embed id name like so:
<p class="code">&lt;body onLoad="window.document.flashIDname.focus();"&gt;</p>

flashIDname = The is the name of flash movie without the ".swf".]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/fix-flash-focus-to-activate-key-clicks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
