The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsI have a question about creating custom classes in AS. Up until this point, I've been doing all my coding in the .fla. But now, I'm trying to be dynamic and use .as files. This is mostly to create components right now, but I kinda want to get into it for normal things, too.
Ok, my question is this - how do I get a function to do something every frame? I tried doing a onEnterFrame function, but when I tested the swf, it said something about there being 256 recursions, and it might be an infinite loop.
What do I do?
If you want to go into classes, it's probably best to upgrade to AS3 if you can.
#include <stdio.h>
char*p="#include <stdio.h>%cchar*p=%c%s%c;%cmain() {printf(p,10,34,p,34,10);}";
main() {printf(p,10,34,p,34,10);}
At 3/31/09 07:33 PM, Nano256 wrote: If you want to go into classes, it's probably best to upgrade to AS3 if you can.
This this this! Make the jump.
In AS2.. you can use setInterval (but it won't quite line up with the frames) or have your class extend MovieClip so you can use onEnterFrame.
As 2 or not, his logic is obviously busted if he has infinite recursion.
Each time someone abuses hittest, God kills a kitten. Please, learn real collision testing.