[Flashcoders] Increase Recursion Level?

2008-10-01 Thread Doug Coning
Is there an actionscript command that can increase the recursion level within a 
flash movie?  I have a legitimate method that calls itself and may exceed the 
256 recursion limitiation.

Or, is it just best not to use recursion in Flash?

Thanks,

Doug

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Increase Recursion Level?

2008-10-01 Thread Merrill, Jason
I think recursion limits are set at the Flash player level, but not at the 
published .swf level, so even if you could increase it (I don't think you can), 
the end user could not change it.  I could be wrong.  I don't know if it's 
necessarily a huge no-no, but I would say it would be recommended to avoid 
recursion as much as possible - puts a ton of strain on the processor and the 
player.  What are you using recursion for?

Jason Merrill
Bank of America 
GCIB  Staff Support LLD
Instructional Technology  Media 
Join the Bank of America Flash Platform Developer Community 
Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  Innovative Learning Blog  subscribe. 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning
Sent: Wednesday, October 01, 2008 1:59 PM
To: Flash Coders List
Subject: [Flashcoders] Increase Recursion Level?

Is there an actionscript command that can increase the recursion level within a 
flash movie?  I have a legitimate method that calls itself and may exceed the 
256 recursion limitiation.

Or, is it just best not to use recursion in Flash?

Thanks,

Doug

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Increase Recursion Level?

2008-10-01 Thread Leandro Ferreira
I think that in player 9 it changed from 256 levels of recursion to 15s of
processing, not sure though.
Anyway, when I genuinely needed that level of recursion, I divided it in
cycles (or frames) in order to work.


   Leandro Ferreira


On Wed, Oct 1, 2008 at 3:21 PM, Merrill, Jason 
[EMAIL PROTECTED] wrote:

 I think recursion limits are set at the Flash player level, but not at the
 published .swf level, so even if you could increase it (I don't think you
 can), the end user could not change it.  I could be wrong.  I don't know if
 it's necessarily a huge no-no, but I would say it would be recommended to
 avoid recursion as much as possible - puts a ton of strain on the processor
 and the player.  What are you using recursion for?

 Jason Merrill
 Bank of America
 GCIB  Staff Support LLD
 Instructional Technology  Media
 Join the Bank of America Flash Platform Developer Community
 Are you a Bank of America associate interested in innovative learning ideas
 and technologies?
 Check out our internal  Innovative Learning Blog  subscribe.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Doug Coning
 Sent: Wednesday, October 01, 2008 1:59 PM
 To: Flash Coders List
 Subject: [Flashcoders] Increase Recursion Level?

 Is there an actionscript command that can increase the recursion level
 within a flash movie?  I have a legitimate method that calls itself and may
 exceed the 256 recursion limitiation.

 Or, is it just best not to use recursion in Flash?

 Thanks,

 Doug

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Increase Recursion Level?

2008-10-01 Thread Doug Coning
Yeah, I found a parameter you could pass into the SWF file that would change 
the recursion level, but wanted to see if I could do it programmatically 
through AS.

I was using recursion to load assets into a swf.  I have an array of assets 
that needed to be loaded into a SWF file.  I've set up a function that would 
pop an element off the load array and then load the asset.  Upon completion of 
the load, it would call the function again if the load array's length  0.

I will change my code to use an onEnterFrame event instead to invoke the calls 
one at a time...

Thanks,

Doug

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Wednesday, October 01, 2008 2:22 PM
To: Flash Coders List
Subject: RE: [Flashcoders] Increase Recursion Level?

I think recursion limits are set at the Flash player level, but not at the 
published .swf level, so even if you could increase it (I don't think you can), 
the end user could not change it.  I could be wrong.  I don't know if it's 
necessarily a huge no-no, but I would say it would be recommended to avoid 
recursion as much as possible - puts a ton of strain on the processor and the 
player.  What are you using recursion for?

Jason Merrill
Bank of America
GCIB  Staff Support LLD
Instructional Technology  Media
Join the Bank of America Flash Platform Developer Community
Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  Innovative Learning Blog  subscribe.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug Coning
Sent: Wednesday, October 01, 2008 1:59 PM
To: Flash Coders List
Subject: [Flashcoders] Increase Recursion Level?

Is there an actionscript command that can increase the recursion level within a 
flash movie?  I have a legitimate method that calls itself and may exceed the 
256 recursion limitiation.

Or, is it just best not to use recursion in Flash?

Thanks,

Doug

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders