<?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: Joy with the script timeout period</title>
	<atom:link href="http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 15:14:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Darren</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-19558</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Tue, 17 Nov 2009 01:29:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-19558</guid>
		<description>To Bob,
If you really want to compute something complicated, try Alchemy in Flash 10, it needs write C code to run in flash, and the side effect is the flash size will be a little larger.</description>
		<content:encoded><![CDATA[<p>To Bob,<br />
If you really want to compute something complicated, try Alchemy in Flash 10, it needs write C code to run in flash, and the side effect is the flash size will be a little larger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbam</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-19552</link>
		<dc:creator>dbam</dc:creator>
		<pubDate>Mon, 16 Nov 2009 18:40:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-19552</guid>
		<description>to Bob Hatrak...
so, just setting a script-time-out to = (4-5 times * 15 seconds) doesn´t work?
Well, if that doesn´t solve Your problem, re-organizing the logic of Your code could (and using as3 with it´s blazing fast vector native types) get You the kick Your app needs..if that´s not an option, try breaking large block of functions into pieces - as far i remember the script time out is per function call/return.

to Nick...
explaining Your problem would get You a LOT faster to a solution. If You´re trying out the example code from the post, obviously You ARE FORCING a script time out...It is not the solution, but the problem.
To set the time out limit You have to use the Flash authoring tool´s option (like mentioned in the post), if You´re on a command line compiler (as mxmlc), see my post above.

cheers.</description>
		<content:encoded><![CDATA[<p>to Bob Hatrak&#8230;<br />
so, just setting a script-time-out to = (4-5 times * 15 seconds) doesn´t work?<br />
Well, if that doesn´t solve Your problem, re-organizing the logic of Your code could (and using as3 with it´s blazing fast vector native types) get You the kick Your app needs..if that´s not an option, try breaking large block of functions into pieces &#8211; as far i remember the script time out is per function call/return.</p>
<p>to Nick&#8230;<br />
explaining Your problem would get You a LOT faster to a solution. If You´re trying out the example code from the post, obviously You ARE FORCING a script time out&#8230;It is not the solution, but the problem.<br />
To set the time out limit You have to use the Flash authoring tool´s option (like mentioned in the post), if You´re on a command line compiler (as mxmlc), see my post above.</p>
<p>cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-19538</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 16 Nov 2009 11:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-19538</guid>
		<description>Hi All !

Can u please elaborate the function.....I&#039;m stuck to the time out issue and tried using the above code. but :(

Help is appreciated.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi All !</p>
<p>Can u please elaborate the function&#8230;..I&#8217;m stuck to the time out issue and tried using the above code. but <img src='http://blog.powerupmedia.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Help is appreciated.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Hatrak</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-19422</link>
		<dc:creator>Bob Hatrak</dc:creator>
		<pubDate>Wed, 11 Nov 2009 18:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-19422</guid>
		<description>I have an employee shift scheduling application using flash 4, actionscript 2,amfphp, mysql and php. My problem is this. When the application is preparing a master schedule a large matrix is used. I get at least 4-5 time out warnings (every 15 seconds). I am preparing to roll out this application and I need a solution since the end user will not accept this delay. Do I need to upgrade to a higher version oa Flash? Can I do anything about this without going through the additional expense of upgrading to Flash 9 for example and action script 3.

PLEASE HELP

MUCH OBLIGED

BOB HATRAK</description>
		<content:encoded><![CDATA[<p>I have an employee shift scheduling application using flash 4, actionscript 2,amfphp, mysql and php. My problem is this. When the application is preparing a master schedule a large matrix is used. I get at least 4-5 time out warnings (every 15 seconds). I am preparing to roll out this application and I need a solution since the end user will not accept this delay. Do I need to upgrade to a higher version oa Flash? Can I do anything about this without going through the additional expense of upgrading to Flash 9 for example and action script 3.</p>
<p>PLEASE HELP</p>
<p>MUCH OBLIGED</p>
<p>BOB HATRAK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-18309</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Mon, 07 Sep 2009 08:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-18309</guid>
		<description>@dbam
Thanks dbam, i think i found my answer from your reply.</description>
		<content:encoded><![CDATA[<p>@dbam<br />
Thanks dbam, i think i found my answer from your reply.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbam</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-18304</link>
		<dc:creator>dbam</dc:creator>
		<pubDate>Sun, 06 Sep 2009 16:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-18304</guid>
		<description>mxmlc takes the option &quot;-default-script-limits  &quot;
found over here:
http://www.actionscript.org/forums/showthread.php3?t=185320
just i case You&#039;re rollin&#039; with the command line compiler...</description>
		<content:encoded><![CDATA[<p>mxmlc takes the option &#8220;-default-script-limits  &#8221;<br />
found over here:<br />
<a href="http://www.actionscript.org/forums/showthread.php3?t=185320" rel="nofollow">http://www.actionscript.org/forums/showthread.php3?t=185320</a><br />
just i case You&#8217;re rollin&#8217; with the command line compiler&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno van Oordt</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-8730</link>
		<dc:creator>Arno van Oordt</dc:creator>
		<pubDate>Mon, 29 Sep 2008 15:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-8730</guid>
		<description>I&#039;m not really into Flex so I have no idea on how to set the timeout in Flex.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not really into Flex so I have no idea on how to set the timeout in Flex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: darren</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-7698</link>
		<dc:creator>darren</dc:creator>
		<pubDate>Tue, 26 Aug 2008 06:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-7698</guid>
		<description>Hi, chapp
    
     if I&#039;m initializing an actionscript3 project in flexbuilder, Couldn&#039;t I use &#039;Ctrl + shift + F12&#039; to set script time limit?
     seems your way to set time limit is based on flash cs3, etc.</description>
		<content:encoded><![CDATA[<p>Hi, chapp</p>
<p>     if I&#8217;m initializing an actionscript3 project in flexbuilder, Couldn&#8217;t I use &#8216;Ctrl + shift + F12&#8242; to set script time limit?<br />
     seems your way to set time limit is based on flash cs3, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: badboybill</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-4037</link>
		<dc:creator>badboybill</dc:creator>
		<pubDate>Fri, 07 Mar 2008 16:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-4037</guid>
		<description>Hey, just wanna say thanks, I scoured the internet trying to figure out why my xml parsing loop was timing out at around a couple thousand nodes, I eventually figured out it was a silent timeout but could not find a solution for the life of me how to deal with it, setting the script timeout limit did nothing for me, but this helped me tremendously! Thanks again.</description>
		<content:encoded><![CDATA[<p>Hey, just wanna say thanks, I scoured the internet trying to figure out why my xml parsing loop was timing out at around a couple thousand nodes, I eventually figured out it was a silent timeout but could not find a solution for the life of me how to deal with it, setting the script timeout limit did nothing for me, but this helped me tremendously! Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: happy chapp!</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-2405</link>
		<dc:creator>happy chapp!</dc:creator>
		<pubDate>Wed, 12 Dec 2007 15:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-2405</guid>
		<description>ah, smart thinking!  thank you for the tip - i&#039;ll try it out this afternoon.  could this be used mid-render, perhaps to indicate &#039;render done %&#039;?  once the data has loaded, it would make sense to provide a secondary loader to indicate why there&#039;s a secondary wait, perhaps as an incremental note?</description>
		<content:encoded><![CDATA[<p>ah, smart thinking!  thank you for the tip &#8211; i&#8217;ll try it out this afternoon.  could this be used mid-render, perhaps to indicate &#8216;render done %&#8217;?  once the data has loaded, it would make sense to provide a secondary loader to indicate why there&#8217;s a secondary wait, perhaps as an incremental note?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno van Oordt</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-2335</link>
		<dc:creator>Arno van Oordt</dc:creator>
		<pubDate>Fri, 07 Dec 2007 09:09:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-2335</guid>
		<description>Hi Chapp,

Using a Timer instead of an EnterFrame there is a little more time between the calculations so the you can run some other code to inform your visitors.
In this example I used a trace but in contrast to the EnterFrame example this code will show the traces in between the timeouts (instead of saving them and only showing them at the end when the complete calculation is done).

Here is the new code:

package {
	import flash.events.TimerEvent;
	import flash.display.MovieClip;
	import flash.utils.Timer;
	import flash.utils.getTimer;
	public class TestMC extends MovieClip{
		private var i:int = 0;
		private var timer:Timer;
		public function TestMC() {
			this.timer = new Timer(100, 0);
			this.timer.addEventListener(TimerEvent.TIMER, this.calculate);
			this.timer.start();
		}
		private function calculate(event:TimerEvent):void {
			try{
				while(true){ this.i++; }
			}
			catch(e:Error){
				trace(&quot;____________\nTimeout #&quot;+this.timer.currentCount+&quot;: &#039;i&#039; after &quot;+getTimer()+&quot; ms = &quot; + this.i);
				if(i&lt;0){ //i will be negative when it becomes to big, normally you would check here if your calculation is done...
					this.timer.removeEventListener(TimerEvent.TIMER, this.calculate);
				}
			}
		}
	}
}</description>
		<content:encoded><![CDATA[<p>Hi Chapp,</p>
<p>Using a Timer instead of an EnterFrame there is a little more time between the calculations so the you can run some other code to inform your visitors.<br />
In this example I used a trace but in contrast to the EnterFrame example this code will show the traces in between the timeouts (instead of saving them and only showing them at the end when the complete calculation is done).</p>
<p>Here is the new code:</p>
<p>package {<br />
	import flash.events.TimerEvent;<br />
	import flash.display.MovieClip;<br />
	import flash.utils.Timer;<br />
	import flash.utils.getTimer;<br />
	public class TestMC extends MovieClip{<br />
		private var i:int = 0;<br />
		private var timer:Timer;<br />
		public function TestMC() {<br />
			this.timer = new Timer(100, 0);<br />
			this.timer.addEventListener(TimerEvent.TIMER, this.calculate);<br />
			this.timer.start();<br />
		}<br />
		private function calculate(event:TimerEvent):void {<br />
			try{<br />
				while(true){ this.i++; }<br />
			}<br />
			catch(e:Error){<br />
				trace(&#8220;____________\nTimeout #&#8221;+this.timer.currentCount+&#8221;: &#8216;i&#8217; after &#8220;+getTimer()+&#8221; ms = &#8221; + this.i);<br />
				if(i&lt;0){ //i will be negative when it becomes to big, normally you would check here if your calculation is done&#8230;<br />
					this.timer.removeEventListener(TimerEvent.TIMER, this.calculate);<br />
				}<br />
			}<br />
		}<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: happy chapp!</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-2329</link>
		<dc:creator>happy chapp!</dc:creator>
		<pubDate>Thu, 06 Dec 2007 23:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-2329</guid>
		<description>Thank you for this!  Is there a way of calling a function once the error is identified?  I have been trying to split this &#039;issue&#039; into two parts:
1,  Display UI feedback to visitor instead of time_out
2,  Proceed with load.

In my current project, the primary dataset exceeds 2Mb.  It times_out with reckless abandon, so it&#039;d be nice to inform visitors that something is happening...  ;)</description>
		<content:encoded><![CDATA[<p>Thank you for this!  Is there a way of calling a function once the error is identified?  I have been trying to split this &#8216;issue&#8217; into two parts:<br />
1,  Display UI feedback to visitor instead of time_out<br />
2,  Proceed with load.</p>
<p>In my current project, the primary dataset exceeds 2Mb.  It times_out with reckless abandon, so it&#8217;d be nice to inform visitors that something is happening&#8230;  <img src='http://blog.powerupmedia.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arno van Oordt</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-2221</link>
		<dc:creator>Arno van Oordt</dc:creator>
		<pubDate>Sat, 01 Dec 2007 14:05:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-2221</guid>
		<description>There was some trouble with the FlashTextFormatter plugin so you couldn&#039;t read the code. But I got rid of the plugin so you should be able to understand the example now.
Infact you can&#039;t set the timeoutperiod by code (neither in as3 nor in as2). You have to set the timeout manually in the publish settings of your fla:
Ctrl+Shift+F12 &gt; flash-tab &gt; &quot;Script time limit&quot;.</description>
		<content:encoded><![CDATA[<p>There was some trouble with the FlashTextFormatter plugin so you couldn&#8217;t read the code. But I got rid of the plugin so you should be able to understand the example now.<br />
Infact you can&#8217;t set the timeoutperiod by code (neither in as3 nor in as2). You have to set the timeout manually in the publish settings of your fla:<br />
Ctrl+Shift+F12 > flash-tab > &#8220;Script time limit&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabriel</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-2208</link>
		<dc:creator>Gabriel</dc:creator>
		<pubDate>Fri, 30 Nov 2007 23:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-2208</guid>
		<description>Hi, I would love to know how to set the script timeout limit in actionscript 2.0. Your example didn&#039;t display for me in your blog, but I viewed source and tracked it down on your server, then decompiled it - however, I couldn&#039;t find any reference to setting the script timeout in the decompiled code...

Could you please post the syntax to set the script timeout for actionscript 2.0?

please please please

Thanks,

Gabriel</description>
		<content:encoded><![CDATA[<p>Hi, I would love to know how to set the script timeout limit in actionscript 2.0. Your example didn&#8217;t display for me in your blog, but I viewed source and tracked it down on your server, then decompiled it &#8211; however, I couldn&#8217;t find any reference to setting the script timeout in the decompiled code&#8230;</p>
<p>Could you please post the syntax to set the script timeout for actionscript 2.0?</p>
<p>please please please</p>
<p>Thanks,</p>
<p>Gabriel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-652</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 14 Sep 2007 00:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-652</guid>
		<description>Just happened by your site by one of the FlexBlogs and couldn&#039;t not just toss out a &#039;Hey&#039;.

hey
--steve...



...as this this is of social, non-flex nature feel free to not post this.</description>
		<content:encoded><![CDATA[<p>Just happened by your site by one of the FlexBlogs and couldn&#8217;t not just toss out a &#8216;Hey&#8217;.</p>
<p>hey<br />
&#8211;steve&#8230;</p>
<p>&#8230;as this this is of social, non-flex nature feel free to not post this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaap Kooiker</title>
		<link>http://blog.powerupmedia.nl/2007/08/24/joy-with-the-script-timeout-period/comment-page-1/#comment-395</link>
		<dc:creator>Jaap Kooiker</dc:creator>
		<pubDate>Fri, 24 Aug 2007 12:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.justgreat.nl/?p=60#comment-395</guid>
		<description>&lt;p&gt;Finally, this is just great when parsing (an xml or something). Sometimes parsing takes a long time which now can be catched before an (in this case) annoying popup appears!&lt;/p&gt;
&lt;p&gt;Great....&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Finally, this is just great when parsing (an xml or something). Sometimes parsing takes a long time which now can be catched before an (in this case) annoying popup appears!</p>
<p>Great&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
