<?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: How to build an Object-Oriented ActionScript 3 Preloader in Flash CS4: 2 Methods</title>
	<atom:link href="http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/</link>
	<description>wrangling the Internet's wildest</description>
	<lastBuildDate>Fri, 16 Dec 2011 14:20:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Keenan</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-22922</link>
		<dc:creator>Keenan</dc:creator>
		<pubDate>Thu, 23 Jun 2011 05:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-22922</guid>
		<description>Thanks maaaate! I didn&#039;t think to create a LoaderInfo object, solved all my problems!</description>
		<content:encoded><![CDATA[<p>Thanks maaaate! I didn&#8217;t think to create a LoaderInfo object, solved all my problems!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Yousaf</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-21635</link>
		<dc:creator>Ahmad Yousaf</dc:creator>
		<pubDate>Tue, 17 May 2011 18:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-21635</guid>
		<description>Thanks Ans for Reply.
Let me clear you my Issue. I know how to attach a document class with fla file... I just want to ADD Object-Oriented Preloader to my already made document class. Means I want to use this Preloader Tutorial to my AS file. I&#039;ve already posted above my document class and I want to add this tutorial&#039;s script to my class.. When I try to add this tutorial script to my document class, it getting error not working.. because at 1st frame of my Fla I&#039;m using a movie clip to load an image... when i shift my content to the 2nd frame the Class not work..
I hope you understand... Now again I&#039;m posting my document class....

////////////////////////////This is my document Class which I&#039;m Using Already/////////////////////////////////

package com.ahmad.bg
{
	//import all classes
	import caurina.transitions.Tweener;
	import flash.display.Loader;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageDisplayState;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	//import flash.events.FullScreenEvent;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	
	/**
	 * ...
	 * @author ...Ahmad Yousaf
	 */
	public class MainClass extends MovieClip 
	{
		//create variables
		private var loader:Loader;
		private static const IMAGE_PATH:String = &quot;bgs/bg.jpg&quot;;		
		
		public function MainClass() {
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;			
			stage.addEventListener(Event.RESIZE, stageResize);		
			
			
			//load external image
			loader = new Loader();
			loader.load(new URLRequest(IMAGE_PATH));
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);
			
			pic.addChild(loader);	
			
			/*stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);
			bottomNav.fullscreen_btn(root).addEventListener(MouseEvent.CLICK, goFullscreen);
			bottomNav.fullscreen_btn(root).buttonMode = true;
		}	
		
		private function onFullscreen(e:FullScreenEvent):void 
		{
			bottomNav.fullscreen_btn(root).gotoAndStop(e.fullScreen?2:1);
			//stage.bottomNav.fullscreen_btn.gotoAndStop(e.fullScreen?2:1);
		}*/
	}
		private function showImage(e:Event):void 
		{
			try {						
				e.target.content.alpha = 1;
				Tweener.addTween(e.target.content, { alpha:1, time:1, transition:&quot;easeOutSine&quot; } );				
				e.target.content.smoothing = true;						
				
			} catch (e:Error) { };
			
			stageResize();
		}
		
		/*private function goFullscreen(e:MouseEvent):void 
		{
			if( stage.displayState == StageDisplayState.NORMAL ){				
				stage.displayState = StageDisplayState.FULL_SCREEN;				
			} else {				
				stage.displayState = StageDisplayState.NORMAL;					
			}		
		}*/
		
		
		private function stageResize(e:Event=null):void
		{			
			pic.x = 0;
			pic.y = 0;
			pic.scaleX = pic.scaleY = 1;			
			
			if ((stage.stageHeight / stage.stageWidth) &lt; pic.height / pic.width) {
				pic.width = stage.stageWidth;
				pic.scaleY = pic.scaleX;
			} else {
				pic.height = stage.stageHeight;				
				pic.scaleX = pic.scaleY;
			};			
			
			pic.x = stage.stageWidth / 2 - pic.width / 2;
			pic.y = stage.stageHeight / 2 - pic.height / 2;		
			
			//fullscreen_btn.x = Math.floor(stage.stageWidth - fullscreen_btn.width - 10);
			//fullscreen_btn.y = 10;
			
			bottomNav.x = Math.floor(stage.stageWidth / 2 - bottomNav.width / 2);
			bottomNav.y = Math.floor(stage.stageHeight - bottomNav.height - 0);
			
		}
		
		
	}	
}

////////////////////////////My Document Class Ended Here/////////////////////////////////


-----------------------

////////////////////////////This Tutorial Script I want to Add my above mentioned Class/////////////////////////////////

package 
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	/**
	* @author Anselm Bradford - anselmbradford.com
	*/
	public class Main extends MovieClip 
	{
		/**
		* Constructor
		* Stop timeline and add event listener to preloader.
		*/
		public function Main() 
		{
			this.stop();
			preloader.addEventListener( Event.COMPLETE , _initContent );
		}
		
		/**
		* Load has finished, remove preloader and preceed to next frame.
		*/
		private function _initContent(evt:Event):void 
		{
			preloader.removeEventListener( Event.COMPLETE , _initContent );
			this.removeChild(preloader);
			nextFrame();
		}
	}
}
/////////////////////////Ended Tutorial Script/////////////////////////////////</description>
		<content:encoded><![CDATA[<p>Thanks Ans for Reply.<br />
Let me clear you my Issue. I know how to attach a document class with fla file&#8230; I just want to ADD Object-Oriented Preloader to my already made document class. Means I want to use this Preloader Tutorial to my AS file. I&#8217;ve already posted above my document class and I want to add this tutorial&#8217;s script to my class.. When I try to add this tutorial script to my document class, it getting error not working.. because at 1st frame of my Fla I&#8217;m using a movie clip to load an image&#8230; when i shift my content to the 2nd frame the Class not work..<br />
I hope you understand&#8230; Now again I&#8217;m posting my document class&#8230;.</p>
<p>////////////////////////////This is my document Class which I&#8217;m Using Already/////////////////////////////////</p>
<p>package com.ahmad.bg<br />
{<br />
	//import all classes<br />
	import caurina.transitions.Tweener;<br />
	import flash.display.Loader;<br />
	import flash.display.MovieClip;<br />
	import flash.display.Sprite;<br />
	import flash.display.StageAlign;<br />
	import flash.display.StageDisplayState;<br />
	import flash.display.StageScaleMode;<br />
	import flash.events.Event;<br />
	//import flash.events.FullScreenEvent;<br />
	import flash.events.MouseEvent;<br />
	import flash.net.URLRequest;</p>
<p>	/**<br />
	 * &#8230;<br />
	 * @author &#8230;Ahmad Yousaf<br />
	 */<br />
	public class MainClass extends MovieClip<br />
	{<br />
		//create variables<br />
		private var loader:Loader;<br />
		private static const IMAGE_PATH:String = &#8220;bgs/bg.jpg&#8221;;		</p>
<p>		public function MainClass() {</p>
<p>			stage.align = StageAlign.TOP_LEFT;<br />
			stage.scaleMode = StageScaleMode.NO_SCALE;<br />
			stage.addEventListener(Event.RESIZE, stageResize);		</p>
<p>			//load external image<br />
			loader = new Loader();<br />
			loader.load(new URLRequest(IMAGE_PATH));<br />
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);</p>
<p>			pic.addChild(loader);	</p>
<p>			/*stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);<br />
			bottomNav.fullscreen_btn(root).addEventListener(MouseEvent.CLICK, goFullscreen);<br />
			bottomNav.fullscreen_btn(root).buttonMode = true;<br />
		}	</p>
<p>		private function onFullscreen(e:FullScreenEvent):void<br />
		{<br />
			bottomNav.fullscreen_btn(root).gotoAndStop(e.fullScreen?2:1);<br />
			//stage.bottomNav.fullscreen_btn.gotoAndStop(e.fullScreen?2:1);<br />
		}*/<br />
	}<br />
		private function showImage(e:Event):void<br />
		{<br />
			try {<br />
				e.target.content.alpha = 1;<br />
				Tweener.addTween(e.target.content, { alpha:1, time:1, transition:&#8221;easeOutSine&#8221; } );<br />
				e.target.content.smoothing = true;						</p>
<p>			} catch (e:Error) { };</p>
<p>			stageResize();<br />
		}</p>
<p>		/*private function goFullscreen(e:MouseEvent):void<br />
		{<br />
			if( stage.displayState == StageDisplayState.NORMAL ){<br />
				stage.displayState = StageDisplayState.FULL_SCREEN;<br />
			} else {<br />
				stage.displayState = StageDisplayState.NORMAL;<br />
			}<br />
		}*/</p>
<p>		private function stageResize(e:Event=null):void<br />
		{<br />
			pic.x = 0;<br />
			pic.y = 0;<br />
			pic.scaleX = pic.scaleY = 1;			</p>
<p>			if ((stage.stageHeight / stage.stageWidth) &lt; pic.height / pic.width) {<br />
				pic.width = stage.stageWidth;<br />
				pic.scaleY = pic.scaleX;<br />
			} else {<br />
				pic.height = stage.stageHeight;<br />
				pic.scaleX = pic.scaleY;<br />
			};			</p>
<p>			pic.x = stage.stageWidth / 2 &#8211; pic.width / 2;<br />
			pic.y = stage.stageHeight / 2 &#8211; pic.height / 2;		</p>
<p>			//fullscreen_btn.x = Math.floor(stage.stageWidth &#8211; fullscreen_btn.width &#8211; 10);<br />
			//fullscreen_btn.y = 10;</p>
<p>			bottomNav.x = Math.floor(stage.stageWidth / 2 &#8211; bottomNav.width / 2);<br />
			bottomNav.y = Math.floor(stage.stageHeight &#8211; bottomNav.height &#8211; 0);</p>
<p>		}</p>
<p>	}<br />
}</p>
<p>////////////////////////////My Document Class Ended Here/////////////////////////////////</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>////////////////////////////This Tutorial Script I want to Add my above mentioned Class/////////////////////////////////</p>
<p>package<br />
{<br />
	import flash.display.MovieClip;<br />
	import flash.events.Event;</p>
<p>	/**<br />
	* @author Anselm Bradford &#8211; anselmbradford.com<br />
	*/<br />
	public class Main extends MovieClip<br />
	{<br />
		/**<br />
		* Constructor<br />
		* Stop timeline and add event listener to preloader.<br />
		*/<br />
		public function Main()<br />
		{<br />
			this.stop();<br />
			preloader.addEventListener( Event.COMPLETE , _initContent );<br />
		}</p>
<p>		/**<br />
		* Load has finished, remove preloader and preceed to next frame.<br />
		*/<br />
		private function _initContent(evt:Event):void<br />
		{<br />
			preloader.removeEventListener( Event.COMPLETE , _initContent );<br />
			this.removeChild(preloader);<br />
			nextFrame();<br />
		}<br />
	}<br />
}<br />
/////////////////////////Ended Tutorial Script/////////////////////////////////</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-21615</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Mon, 16 May 2011 23:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-21615</guid>
		<description>Hi Ahmad,

You set it as the document class... see http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/

EDIT: sorry didn&#039;t see your prior message. I&#039;m not sure what the issue is, try adding your code to the new project that works, instead of the other way around. Also, do this piece by piece, checking along the way.</description>
		<content:encoded><![CDATA[<p>Hi Ahmad,</p>
<p>You set it as the document class&#8230; see <a href="http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/?referer=');">http://active.tutsplus.com/tutorials/actionscript/quick-tip-how-to-use-a-document-class-in-flash/</a></p>
<p>EDIT: sorry didn&#8217;t see your prior message. I&#8217;m not sure what the issue is, try adding your code to the new project that works, instead of the other way around. Also, do this piece by piece, checking along the way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Yousaf</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-21601</link>
		<dc:creator>Ahmad Yousaf</dc:creator>
		<pubDate>Mon, 16 May 2011 13:59:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-21601</guid>
		<description>how can I use this code to my document class??? Thanks..
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
package 
{
	import flash.display.MovieClip;
	import flash.events.Event;
 
	public class Main extends MovieClip 
	{
		/**
		* Constructor
		* Stop timeline and add event listener to preloader.
		*/
		public function Main() 
		{
			this.stop();
			preloader.addEventListener( Event.COMPLETE , _initContent );
		}
 
		/**
		* Load has finished, remove preloader and preceed to next frame.
		*/
		private function _initContent(evt:Event):void 
		{
			preloader.removeEventListener( Event.COMPLETE , _initContent );
			this.removeChild(preloader);
			nextFrame();
		}
	}
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</description>
		<content:encoded><![CDATA[<p>how can I use this code to my document class??? Thanks..<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br />
package<br />
{<br />
	import flash.display.MovieClip;<br />
	import flash.events.Event;</p>
<p>	public class Main extends MovieClip<br />
	{<br />
		/**<br />
		* Constructor<br />
		* Stop timeline and add event listener to preloader.<br />
		*/<br />
		public function Main()<br />
		{<br />
			this.stop();<br />
			preloader.addEventListener( Event.COMPLETE , _initContent );<br />
		}</p>
<p>		/**<br />
		* Load has finished, remove preloader and preceed to next frame.<br />
		*/<br />
		private function _initContent(evt:Event):void<br />
		{<br />
			preloader.removeEventListener( Event.COMPLETE , _initContent );<br />
			this.removeChild(preloader);<br />
			nextFrame();<br />
		}<br />
	}<br />
}<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmad Yousaf</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-21600</link>
		<dc:creator>Ahmad Yousaf</dc:creator>
		<pubDate>Mon, 16 May 2011 13:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-21600</guid>
		<description>Hi, If i create new project this code work fine. but If I insert this code to my own document class, its not work. can any one help??? please thanks..

my document class...
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
package com.ahmad.bg
{
	//import all classes
	import caurina.transitions.Tweener;
	import flash.display.Loader;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageDisplayState;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	//import flash.events.FullScreenEvent;
	import flash.events.MouseEvent;
	import flash.net.URLRequest;
	
	/**
	 * ...
	 * @author ...Ahmad Yousaf - www.ahmadyousaf.com &#124; [email removed]
	 */
	public class MainClass extends MovieClip 
	{
		//create variables
		private var loader:Loader;
		private static const IMAGE_PATH:String = &quot;bgs/bg.jpg&quot;;		
		
		public function MainClass() {
			
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.NO_SCALE;			
			stage.addEventListener(Event.RESIZE, stageResize);		
			
			
			//load external image
			loader = new Loader();
			loader.load(new URLRequest(IMAGE_PATH));
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);
			
			pic.addChild(loader);	
			
			/*stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);
			bottomNav.fullscreen_btn(root).addEventListener(MouseEvent.CLICK, goFullscreen);
			bottomNav.fullscreen_btn(root).buttonMode = true;
		}	
		
		private function onFullscreen(e:FullScreenEvent):void 
		{
			bottomNav.fullscreen_btn(root).gotoAndStop(e.fullScreen?2:1);
			//stage.bottomNav.fullscreen_btn.gotoAndStop(e.fullScreen?2:1);
		}*/
	}
		private function showImage(e:Event):void 
		{
			try {						
				e.target.content.alpha = 1;
				Tweener.addTween(e.target.content, { alpha:1, time:1, transition:&quot;easeOutSine&quot; } );				
				e.target.content.smoothing = true;						
				
			} catch (e:Error) { };
			
			stageResize();
		}
		
		/*private function goFullscreen(e:MouseEvent):void 
		{
			if( stage.displayState == StageDisplayState.NORMAL ){				
				stage.displayState = StageDisplayState.FULL_SCREEN;				
			} else {				
				stage.displayState = StageDisplayState.NORMAL;					
			}		
		}*/
		
		
		private function stageResize(e:Event=null):void
		{			
			pic.x = 0;
			pic.y = 0;
			pic.scaleX = pic.scaleY = 1;			
			
			if ((stage.stageHeight / stage.stageWidth) &lt; pic.height / pic.width) {
				pic.width = stage.stageWidth;
				pic.scaleY = pic.scaleX;
			} else {
				pic.height = stage.stageHeight;				
				pic.scaleX = pic.scaleY;
			};			
			
			pic.x = stage.stageWidth / 2 - pic.width / 2;
			pic.y = stage.stageHeight / 2 - pic.height / 2;		
			
			//fullscreen_btn.x = Math.floor(stage.stageWidth - fullscreen_btn.width - 10);
			//fullscreen_btn.y = 10;
			
			bottomNav.x = Math.floor(stage.stageWidth / 2 - bottomNav.width / 2);
			bottomNav.y = Math.floor(stage.stageHeight - bottomNav.height - 0);
			
		}
		
		
	}	
}
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</description>
		<content:encoded><![CDATA[<p>Hi, If i create new project this code work fine. but If I insert this code to my own document class, its not work. can any one help??? please thanks..</p>
<p>my document class&#8230;<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br />
package com.ahmad.bg<br />
{<br />
	//import all classes<br />
	import caurina.transitions.Tweener;<br />
	import flash.display.Loader;<br />
	import flash.display.MovieClip;<br />
	import flash.display.Sprite;<br />
	import flash.display.StageAlign;<br />
	import flash.display.StageDisplayState;<br />
	import flash.display.StageScaleMode;<br />
	import flash.events.Event;<br />
	//import flash.events.FullScreenEvent;<br />
	import flash.events.MouseEvent;<br />
	import flash.net.URLRequest;</p>
<p>	/**<br />
	 * &#8230;<br />
	 * @author &#8230;Ahmad Yousaf &#8211; <a href="http://www.ahmadyousaf.com" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.ahmadyousaf.com?referer=');">http://www.ahmadyousaf.com</a> | [email removed]<br />
	 */<br />
	public class MainClass extends MovieClip<br />
	{<br />
		//create variables<br />
		private var loader:Loader;<br />
		private static const IMAGE_PATH:String = &#8220;bgs/bg.jpg&#8221;;		</p>
<p>		public function MainClass() {</p>
<p>			stage.align = StageAlign.TOP_LEFT;<br />
			stage.scaleMode = StageScaleMode.NO_SCALE;<br />
			stage.addEventListener(Event.RESIZE, stageResize);		</p>
<p>			//load external image<br />
			loader = new Loader();<br />
			loader.load(new URLRequest(IMAGE_PATH));<br />
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, showImage);</p>
<p>			pic.addChild(loader);	</p>
<p>			/*stage.addEventListener(FullScreenEvent.FULL_SCREEN, onFullscreen);<br />
			bottomNav.fullscreen_btn(root).addEventListener(MouseEvent.CLICK, goFullscreen);<br />
			bottomNav.fullscreen_btn(root).buttonMode = true;<br />
		}	</p>
<p>		private function onFullscreen(e:FullScreenEvent):void<br />
		{<br />
			bottomNav.fullscreen_btn(root).gotoAndStop(e.fullScreen?2:1);<br />
			//stage.bottomNav.fullscreen_btn.gotoAndStop(e.fullScreen?2:1);<br />
		}*/<br />
	}<br />
		private function showImage(e:Event):void<br />
		{<br />
			try {<br />
				e.target.content.alpha = 1;<br />
				Tweener.addTween(e.target.content, { alpha:1, time:1, transition:&#8221;easeOutSine&#8221; } );<br />
				e.target.content.smoothing = true;						</p>
<p>			} catch (e:Error) { };</p>
<p>			stageResize();<br />
		}</p>
<p>		/*private function goFullscreen(e:MouseEvent):void<br />
		{<br />
			if( stage.displayState == StageDisplayState.NORMAL ){<br />
				stage.displayState = StageDisplayState.FULL_SCREEN;<br />
			} else {<br />
				stage.displayState = StageDisplayState.NORMAL;<br />
			}<br />
		}*/</p>
<p>		private function stageResize(e:Event=null):void<br />
		{<br />
			pic.x = 0;<br />
			pic.y = 0;<br />
			pic.scaleX = pic.scaleY = 1;			</p>
<p>			if ((stage.stageHeight / stage.stageWidth) &lt; pic.height / pic.width) {<br />
				pic.width = stage.stageWidth;<br />
				pic.scaleY = pic.scaleX;<br />
			} else {<br />
				pic.height = stage.stageHeight;<br />
				pic.scaleX = pic.scaleY;<br />
			};			</p>
<p>			pic.x = stage.stageWidth / 2 &#8211; pic.width / 2;<br />
			pic.y = stage.stageHeight / 2 &#8211; pic.height / 2;		</p>
<p>			//fullscreen_btn.x = Math.floor(stage.stageWidth &#8211; fullscreen_btn.width &#8211; 10);<br />
			//fullscreen_btn.y = 10;</p>
<p>			bottomNav.x = Math.floor(stage.stageWidth / 2 &#8211; bottomNav.width / 2);<br />
			bottomNav.y = Math.floor(stage.stageHeight &#8211; bottomNav.height &#8211; 0);</p>
<p>		}</p>
<p>	}<br />
}<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-19622</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Wed, 16 Mar 2011 02:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-19622</guid>
		<description>Thanks for the solution!</description>
		<content:encoded><![CDATA[<p>Thanks for the solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renorigs</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-19620</link>
		<dc:creator>renorigs</dc:creator>
		<pubDate>Wed, 16 Mar 2011 02:16:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-19620</guid>
		<description>well, I have a solution to my problem...it doesn&#039;t matter what preloader I use ..I will have the problem on this Apache server..
But I have fixed my issue
It has to do with server settings compression and flashplayer can&#039;t tell the size of the file..
rather than me explain just use these links to help you understand to rewrite a modDeflate rule in htaccess file
http://flashscript.ca/preloader.php
and
http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other

for me IE works only if you put this file in the same folder --
thank you Ans and goodNight!</description>
		<content:encoded><![CDATA[<p>well, I have a solution to my problem&#8230;it doesn&#8217;t matter what preloader I use ..I will have the problem on this Apache server..<br />
But I have fixed my issue<br />
It has to do with server settings compression and flashplayer can&#8217;t tell the size of the file..<br />
rather than me explain just use these links to help you understand to rewrite a modDeflate rule in htaccess file<br />
<a href="http://flashscript.ca/preloader.php" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/flashscript.ca/preloader.php?referer=');">http://flashscript.ca/preloader.php</a><br />
and<br />
<a href="http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other?referer=');">http://www.philchen.com/2009/08/04/apache-mod_deflate-and-flash-swf-files-dont-like-each-other</a></p>
<p>for me IE works only if you put this file in the same folder &#8211;<br />
thank you Ans and goodNight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renorigs</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-19615</link>
		<dc:creator>renorigs</dc:creator>
		<pubDate>Wed, 16 Mar 2011 00:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-19615</guid>
		<description>i found if i add &#124;swf&#124; to the mod_deflate (.htaccess file)  your preloader will fucntion in FF BUT not IE -- 
So I am close but still do not have this figured out...</description>
		<content:encoded><![CDATA[<p>i found if i add |swf| to the mod_deflate (.htaccess file)  your preloader will fucntion in FF BUT not IE &#8212;<br />
So I am close but still do not have this figured out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renorigs</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-19612</link>
		<dc:creator>renorigs</dc:creator>
		<pubDate>Tue, 15 Mar 2011 23:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-19612</guid>
		<description>Ans -

I received no Erros when running the example on my server..

renorigs</description>
		<content:encoded><![CDATA[<p>Ans -</p>
<p>I received no Erros when running the example on my server..</p>
<p>renorigs</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renorigs</title>
		<link>http://blog.anselmbradford.com/2009/06/20/how-to-build-an-object-oriented-actionscript-3-preloader-in-flash-cs4-2-methods/comment-page-1/#comment-19611</link>
		<dc:creator>renorigs</dc:creator>
		<pubDate>Tue, 15 Mar 2011 23:20:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=836#comment-19611</guid>
		<description>Hi Ans-

ok--yes they do acually load eventually -- I am still diggin into this.. 
It is an apache server and I have read it could perhaps have something to do with the mod_Deflate settings and swf not playing well together, but do not yet know what or where to change this..
This is where I am now....</description>
		<content:encoded><![CDATA[<p>Hi Ans-</p>
<p>ok&#8211;yes they do acually load eventually &#8212; I am still diggin into this..<br />
It is an apache server and I have read it could perhaps have something to do with the mod_Deflate settings and swf not playing well together, but do not yet know what or where to change this..<br />
This is where I am now&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

