<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Tutorial &#124; Animating with Physics and AS3</title>
	<atom:link href="http://www.flashenabledblog.com/2008/06/05/tutorial-animating-with-physics-and-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashenabledblog.com/2008/06/05/tutorial-animating-with-physics-and-as3/</link>
	<description>A Blog covering Air, Flash, Flex, Illustrator and Photoshop</description>
	<lastBuildDate>Sun, 11 Sep 2011 02:17:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jodi</title>
		<link>http://www.flashenabledblog.com/2008/06/05/tutorial-animating-with-physics-and-as3/comment-page-1/#comment-1183</link>
		<dc:creator>jodi</dc:creator>
		<pubDate>Sat, 04 Oct 2008 03:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1455#comment-1183</guid>
		<description>package
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class Bobbing extends Sprite {
		private var ball:Ball;
		private var angle:Number = 0;
		private var centerY:Number = 200;
		private var range:Number = 50;
		private var speed:Number = .1;

		public function Bobbing()	{
			init();
		}
		private function init():void {
			ball = new Ball();
			addChild(ball);
			ball.x = stage.stageWidth / 2;
			addEventListener(Event.ENTER_FRAME, onEnterFrame);
		}
		public function onEnterFrame(event:Event):void {
			ball.y = centerY + Math.sin(angle) * range;
			angle += speed;
		}
	}
}</description>
		<content:encoded><![CDATA[<p>package<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.events.Event;</p>
<p>	public class Bobbing extends Sprite {<br />
		private var ball:Ball;<br />
		private var angle:Number = 0;<br />
		private var centerY:Number = 200;<br />
		private var range:Number = 50;<br />
		private var speed:Number = .1;</p>
<p>		public function Bobbing()	{<br />
			init();<br />
		}<br />
		private function init():void {<br />
			ball = new Ball();<br />
			addChild(ball);<br />
			ball.x = stage.stageWidth / 2;<br />
			addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
		}<br />
		public function onEnterFrame(event:Event):void {<br />
			ball.y = centerY + Math.sin(angle) * range;<br />
			angle += speed;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jodi</title>
		<link>http://www.flashenabledblog.com/2008/06/05/tutorial-animating-with-physics-and-as3/comment-page-1/#comment-1182</link>
		<dc:creator>jodi</dc:creator>
		<pubDate>Sat, 04 Oct 2008 03:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://flashenabled.wordpress.com/?p=1455#comment-1182</guid>
		<description>I am so confused how I can use an illustrator file (image) with an as file (movement). Here is the as file to animate a simple red ball

package
{
	import flash.display.Sprite;
	import flash.events.Event;

	public class Bobbing extends Sprite {
		private var ball:Ball;
		private var angle:Number = 0;
		private var centerY:Number = 200;
		private var range:Number = 50;
		private var speed:Number = .1;

		public function Bobbing()	{
			init();
		}
		private function init():void {
			ball = new Ball();
			addChild(ball);
			ball.x = stage.stageWidth / 2;
			addEventListener(Event.ENTER_FRAME, onEnterFrame);
		}
		public function onEnterFrame(event:Event):void {
			ball.y = centerY + Math.sin(angle) * range;
			angle += speed;
		}
	}
}</description>
		<content:encoded><![CDATA[<p>I am so confused how I can use an illustrator file (image) with an as file (movement). Here is the as file to animate a simple red ball</p>
<p>package<br />
{<br />
	import flash.display.Sprite;<br />
	import flash.events.Event;</p>
<p>	public class Bobbing extends Sprite {<br />
		private var ball:Ball;<br />
		private var angle:Number = 0;<br />
		private var centerY:Number = 200;<br />
		private var range:Number = 50;<br />
		private var speed:Number = .1;</p>
<p>		public function Bobbing()	{<br />
			init();<br />
		}<br />
		private function init():void {<br />
			ball = new Ball();<br />
			addChild(ball);<br />
			ball.x = stage.stageWidth / 2;<br />
			addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
		}<br />
		public function onEnterFrame(event:Event):void {<br />
			ball.y = centerY + Math.sin(angle) * range;<br />
			angle += speed;<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

