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@chattyfig.figleaf.com
Subject: [Flashcoders] +Infinite Loop -Dignity

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 _gameScene.update().

_gameScene.update() has the following loop inside of it:

for (var i:Number = 0; i != elements.length; i++) {
elements[i].animation.update();
}

That FOR loop puts my humble PC into a coma. The variable 'elements' is not
undefined, and when I call trace(elements.length) I get '2'. I tried
clearing ASO cache (whatever that's worth right now) as a silly precaution.

Excuse me whilst I hang myself.
_______________________________________________
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to