Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Jim Kremens
serious... about this. Jim On 7/11/07, Steven Sacks <[EMAIL PROTECTED]> wrote: > while(i--)a[i].n.t(); You ain't what? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mail

Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks
> while(i--)a[i].n.t(); You ain't what? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Ad

Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Jim Kremens
Why are you using INSANELY long variable names like 'element' and 'animation'? And why the spaces? Shouldn't that read: var i:Number = a.length; while(i--)a[i].n.t(); :-) Before anyone flames me... I'm kidding. Jim ___ Flashcoders@chattyfig.figle

Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks
Oops! var i:Number = elements.length; while (i--) { elements[i].animation.update(); } Steven Sacks wrote: Decrementing is faster than incrementing. var i:Number = elements.length; while (--i) { elements[i].animation.update(); } ___ Flashcod

Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Steven Sacks
Decrementing is faster than incrementing. var i:Number = elements.length; while (--i) { elements[i].animation.update(); } ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/m

Re: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Carl Welch
I heard using FOR is very slow. Instead, try WHILE (much faster): var i = -1; while (++i wrote: This will happen if elements.length is undefined. i will never equal undefined. Use i < elements.length P >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PR

RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Pete Miller
This will happen if elements.length is undefined. i will never equal undefined. Use i < elements.length P >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:flashcoders- >> [EMAIL PROTECTED] On Behalf Of daniel >> Sent: Tuesday, July 10, 2007 11:52 PM >> To: flashcoders@chattyfig.

RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-11 Thread Danny Kodicek
> I feel really stupid right now. No, not that stupid. I mean > really stupid. > Take the highest level of stupid you can imagine and double > that. Yes, now you've got it! > > I have a class named Game. > > Game.start() calls setInterval(this, "update", 1000). > > Game.update() calls _game

RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread David Ngo
Why do you have so many hoops to jump through? Try changing your for loop to this: for (var i:Number = 0; i < elements.length; i++) David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of daniel Sent: Tuesday, July 10, 2007 11:52 PM To: flashcoders@chatt

RE: [Flashcoders] +Infinite Loop -Dignity

2007-07-10 Thread Enrico Tumilisar
Is it possible that the i != elements.length inside the for loop leads to trouble? Maybe if it's change to imailto:[EMAIL PROTECTED] On Behalf Of daniel Sent: Wednesday, July 11, 2007 10:52 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] +Infinite Loop -Dignity I feel really stupid