<?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: Making a Complete Flash Game: Prerolling Sponsor Ads and Your Logo</title>
	<atom:link href="http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/feed" rel="self" type="application/rss+xml" />
	<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo</link>
	<description>Learn to Make Flash Games, Applications, and Websites</description>
	<lastBuildDate>Fri, 16 Dec 2011 19:32:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Iron3</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-5931</link>
		<dc:creator>Iron3</dc:creator>
		<pubDate>Sat, 23 Apr 2011 18:19:15 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-5931</guid>
		<description>I am having trouble with Tweener.
I downloaded the completed Tutorial Zip file but Tweener is not in that file.

So I downloaded Tweener from Google. I have tried using it but I get 
Compiler errors.  My path is correct I but I am not sure what the trouble is.

@Beau, were did you get your Tweener.as file?

BTW:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
	at flash.display::DisplayObjectContainer/removeChild()
	at com.asgamer.snipergame::Engine/showSponsors()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at com.asgamer.snipergame::ThePreloader/phaseComplete()
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at caurina.transitions::Tweener$/updateTweenByIndex()
	at caurina.transitions::Tweener$/updateTweens()
	at caurina.transitions::Tweener$/onEnterFrame()

Thank you for anyone&#039;s help :-)</description>
		<content:encoded><![CDATA[<p>I am having trouble with Tweener.<br />
I downloaded the completed Tutorial Zip file but Tweener is not in that file.</p>
<p>So I downloaded Tweener from Google. I have tried using it but I get<br />
Compiler errors.  My path is correct I but I am not sure what the trouble is.</p>
<p>@Beau, were did you get your Tweener.as file?</p>
<p>BTW:<br />
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.<br />
	at flash.display::DisplayObjectContainer/removeChild()<br />
	at com.asgamer.snipergame::Engine/showSponsors()<br />
	at flash.events::EventDispatcher/dispatchEventFunction()<br />
	at flash.events::EventDispatcher/dispatchEvent()<br />
	at com.asgamer.snipergame::ThePreloader/phaseComplete()<br />
	at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
	at caurina.transitions::Tweener$/updateTweenByIndex()<br />
	at caurina.transitions::Tweener$/updateTweens()<br />
	at caurina.transitions::Tweener$/onEnterFrame()</p>
<p>Thank you for anyone&#8217;s help <img src='http://asgamer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FX</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-5303</link>
		<dc:creator>FX</dc:creator>
		<pubDate>Tue, 30 Nov 2010 06:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-5303</guid>
		<description>Slight issue. Tutorial 1 works great. I try recreating tutorial 2 but when it gets to the preroll it shows the trace for which preroll (0) but nothing plays. If I click on export on frame one then it plays correctly. I am sure (and have redone) moving my movie clips into assetholder but still no luck. I am using cs5.</description>
		<content:encoded><![CDATA[<p>Slight issue. Tutorial 1 works great. I try recreating tutorial 2 but when it gets to the preroll it shows the trace for which preroll (0) but nothing plays. If I click on export on frame one then it plays correctly. I am sure (and have redone) moving my movie clips into assetholder but still no luck. I am using cs5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-4736</link>
		<dc:creator>Beau</dc:creator>
		<pubDate>Thu, 04 Feb 2010 06:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-4736</guid>
		<description>ath77 - I figured it out. When you install the Tweener zip there is a folder labeled caurina in there. That has to go into the default folder for your project, NOT in the com folder. The paths inside the files are not setup any other way so compiling will result in many errors. You also have to import it without the com. in front of caurina.transitions.Tweener; This is contrary to how they have been doing things thus far. Just thought I would help out.</description>
		<content:encoded><![CDATA[<p>ath77 &#8211; I figured it out. When you install the Tweener zip there is a folder labeled caurina in there. That has to go into the default folder for your project, NOT in the com folder. The paths inside the files are not setup any other way so compiling will result in many errors. You also have to import it without the com. in front of caurina.transitions.Tweener; This is contrary to how they have been doing things thus far. Just thought I would help out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Beau</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-4735</link>
		<dc:creator>Beau</dc:creator>
		<pubDate>Thu, 04 Feb 2010 06:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-4735</guid>
		<description>I agree with ath77. I am also having an issue with the tweener. I wish you guys would have extended your basics series to add in the preloader and such, because I came to this tutorial to learn to put a preloader on a game, but so far I&#039;ve been doing damage control with the code and am very confused. It would have been the perfect idea to extend your last set of tutorials instead of starting from scratch with something else.

I am assuming I put the caurina folder included with the Tweener package into the projects com folder. Yet when I do I get nothing but errors even when I import the Tweener. A small guide on setting this up or a link would have been nice. I didn&#039;t even see anything saying we were going to be needing anything else for this project besides the code we have. I didn&#039;t even start to realise Tweener was a set of add-ons until I read through the comments.</description>
		<content:encoded><![CDATA[<p>I agree with ath77. I am also having an issue with the tweener. I wish you guys would have extended your basics series to add in the preloader and such, because I came to this tutorial to learn to put a preloader on a game, but so far I&#8217;ve been doing damage control with the code and am very confused. It would have been the perfect idea to extend your last set of tutorials instead of starting from scratch with something else.</p>
<p>I am assuming I put the caurina folder included with the Tweener package into the projects com folder. Yet when I do I get nothing but errors even when I import the Tweener. A small guide on setting this up or a link would have been nice. I didn&#8217;t even see anything saying we were going to be needing anything else for this project besides the code we have. I didn&#8217;t even start to realise Tweener was a set of add-ons until I read through the comments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ath77</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-4709</link>
		<dc:creator>ath77</dc:creator>
		<pubDate>Wed, 06 Jan 2010 21:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-4709</guid>
		<description>Hi Par, I don&#039;t know where to put the caurina folder in my project, you say:

&quot;Alright, of course you will need to import Tweener and add it to your directory so flash can use it. But now it will take one second for our Preloader to fade out(plenty enough time for us to reach frame 3), then we can start loading our sponsors.&quot;

Which is supposed to be &#039;your directory&#039;?

On ThePreloader.as file, I write &#039;import caurina.transitions.Tweener;&#039; INSIDE the &#039;package com.asgamer.snipergame {&#039;. 
My question is, should the caurina folder be within the snipergame folder?
Also I don&#039;t know how properly configure the classpath. I&#039;ve read on Tweener&#039;s site that I should modify the doc&#039;s classpath, but in the tutorial, the properties state its &#039;com.asgamer.snipergame.Engine&#039;. 

I&#039;ve managed to follow and do all the stuff in your beginner&#039;s guide as well as the preloader, but now I&#039;m stuck here.</description>
		<content:encoded><![CDATA[<p>Hi Par, I don&#8217;t know where to put the caurina folder in my project, you say:</p>
<p>&#8220;Alright, of course you will need to import Tweener and add it to your directory so flash can use it. But now it will take one second for our Preloader to fade out(plenty enough time for us to reach frame 3), then we can start loading our sponsors.&#8221;</p>
<p>Which is supposed to be &#8216;your directory&#8217;?</p>
<p>On ThePreloader.as file, I write &#8216;import caurina.transitions.Tweener;&#8217; INSIDE the &#8216;package com.asgamer.snipergame {&#8216;.<br />
My question is, should the caurina folder be within the snipergame folder?<br />
Also I don&#8217;t know how properly configure the classpath. I&#8217;ve read on Tweener&#8217;s site that I should modify the doc&#8217;s classpath, but in the tutorial, the properties state its &#8216;com.asgamer.snipergame.Engine&#8217;. </p>
<p>I&#8217;ve managed to follow and do all the stuff in your beginner&#8217;s guide as well as the preloader, but now I&#8217;m stuck here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rolpege</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-2458</link>
		<dc:creator>Rolpege</dc:creator>
		<pubDate>Wed, 27 May 2009 16:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-2458</guid>
		<description>You can, also, add links to the preroll.

I have done it by myself ^^.

Here are the new lines:

First the imports. We need to add:
import flash.net.URLRequest;
import flash.net.navigateToURL;

Next, we add two more global class variables:
prerollLinks:Array;
currentLink:int = 0;

After that, in the constructor function we add at the bottom of the preroll list, the prerollLinks array, with the links in the same order than their appear order.

Next, in preroll function we change this:

if (currentPreroll == prerollList.length) {
return prerollComplete();
}

To this:
if (currentPreroll == prerollList.length) {
stageRef.removeEventListener(MouseEvent.CLICK, link);
}

After that, we add in the preroll function:
stageRef.addEventListener(MouseEvent.CLICK, link, false, 0, true);

Next, we create a link function with this inside:
var request:URLRequest = new URLRequest(prerollLinks[currentLink]);
navigateToURL(request, &quot;_blank&quot;);

And finally, we add to the nextPreroll function this:
currentLink ++;

---

I hope this will help you.

Sorry for my English.
Rolpege</description>
		<content:encoded><![CDATA[<p>You can, also, add links to the preroll.</p>
<p>I have done it by myself ^^.</p>
<p>Here are the new lines:</p>
<p>First the imports. We need to add:<br />
import flash.net.URLRequest;<br />
import flash.net.navigateToURL;</p>
<p>Next, we add two more global class variables:<br />
prerollLinks:Array;<br />
currentLink:int = 0;</p>
<p>After that, in the constructor function we add at the bottom of the preroll list, the prerollLinks array, with the links in the same order than their appear order.</p>
<p>Next, in preroll function we change this:</p>
<p>if (currentPreroll == prerollList.length) {<br />
return prerollComplete();<br />
}</p>
<p>To this:<br />
if (currentPreroll == prerollList.length) {<br />
stageRef.removeEventListener(MouseEvent.CLICK, link);<br />
}</p>
<p>After that, we add in the preroll function:<br />
stageRef.addEventListener(MouseEvent.CLICK, link, false, 0, true);</p>
<p>Next, we create a link function with this inside:<br />
var request:URLRequest = new URLRequest(prerollLinks[currentLink]);<br />
navigateToURL(request, &#8220;_blank&#8221;);</p>
<p>And finally, we add to the nextPreroll function this:<br />
currentLink ++;</p>
<p>&#8212;</p>
<p>I hope this will help you.</p>
<p>Sorry for my English.<br />
Rolpege</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pkr</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-1369</link>
		<dc:creator>pkr</dc:creator>
		<pubDate>Thu, 30 Apr 2009 13:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-1369</guid>
		<description>Read and used your tutorial! Learned a little bit!
Simple, easy to understand and the explanations are really pleasing!

I wish Id ve teachers like you in my younger days!

Keep it going!

cheers 
pkr</description>
		<content:encoded><![CDATA[<p>Read and used your tutorial! Learned a little bit!<br />
Simple, easy to understand and the explanations are really pleasing!</p>
<p>I wish Id ve teachers like you in my younger days!</p>
<p>Keep it going!</p>
<p>cheers<br />
pkr</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Par</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-816</link>
		<dc:creator>Par</dc:creator>
		<pubDate>Fri, 17 Apr 2009 13:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-816</guid>
		<description>Try reading the tutorial next time.
You need to download Tweener and install it.</description>
		<content:encoded><![CDATA[<p>Try reading the tutorial next time.<br />
You need to download Tweener and install it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clouse</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-788</link>
		<dc:creator>Clouse</dc:creator>
		<pubDate>Thu, 16 Apr 2009 21:52:01 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-788</guid>
		<description>Hmm... all i did was download the source, open up the .FLA, and Test the Movie and all i got was a grey screen, and two compile errors.</description>
		<content:encoded><![CDATA[<p>Hmm&#8230; all i did was download the source, open up the .FLA, and Test the Movie and all i got was a grey screen, and two compile errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olve</title>
		<link>http://asgamer.com/2009/making-a-complete-flash-game-prerolling-sponsor-ads-and-your-logo/comment-page-1#comment-725</link>
		<dc:creator>Olve</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:50:46 +0000</pubDate>
		<guid isPermaLink="false">http://asgamer.com/?p=411#comment-725</guid>
		<description>Figured it out. I had placed tweener in the wrong directory.</description>
		<content:encoded><![CDATA[<p>Figured it out. I had placed tweener in the wrong directory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

