<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: Delaying Actions]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Sun, 22 Nov 2009 01:28:01 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment4017</link><description><![CDATA[the source file doesn't work in cs3<br/><br/>
(Comment posted by qwerty at 4:11 pm, Sun 17th Jun 2007)]]></description><author>no@spam.com (qwerty)</author><pubDate><![CDATA[Sun, 17 Jun 2007 16:11:28 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment4017</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment5531</link><description><![CDATA[setInterval() and clearInterval() are much more elegant than this method. set interval is independent of the timeline  and is actually based on time rather than the framerate. 
ie...
//first we set a variable that will be the max number of seconds to wait before the timer is does it's thing

var maxNum:Number = 10;
function myDelay(){
//i will be the counter. When i is equal to or greater than 10 your actions will execute.

i=-1;
if(++i=>maxNum){
 //clear the startTimer to stop the loop
 clearInterval(startTimer)
 //run your actions.
 }
}

//start timer will run once every second (1000) 
startTimer = setInterval(this,"myDelay()",1000)<br/><br/>
(Comment posted by Frank at 9:02 am, Tue 21st Aug 2007)]]></description><author>no@spam.com (Frank)</author><pubDate><![CDATA[Tue, 21 Aug 2007 09:02:39 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment5531</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment9074</link><description><![CDATA[error in the function...

should be >=   not   =><br/><br/>
(Comment posted by Patrick Murray at 6:29 am, Thu 24th Jan 2008)]]></description><author>no@spam.com (Patrick Murray)</author><pubDate><![CDATA[Thu, 24 Jan 2008 06:29:54 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment9074</guid></item><item><title><![CDATA[Comment #4]]></title><link>http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment12129</link><description><![CDATA[Hi,

I know the setInterval method which is applied to Function. BUT I want a delay in a loop. For example.

for (i = 30; i>0; i--)
{
	trace ("test");
	//delay(1000);
}

right now it generates test messages all at once.
Obviously this //delay should be replaced with some logical command. Kindly help.<br/><br/>
(Comment posted by Naveed at 10:24 am, Fri 17th Oct 2008)]]></description><author>no@spam.com (Naveed)</author><pubDate><![CDATA[Fri, 17 Oct 2008 10:24:15 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/106/1/Delaying-Actions/Page1.html#Comment12129</guid></item></channel></rss>