PDA

View Full Version : all that code lies where?


yker22
06-29-2006, 11:35 PM
I have a question:

The facts: I have 50 movie clip instances on the stage. Every instance has a this.onPress = function, so the function is called "only" when pressed? I mean that the function to be called is about 1500 lines of code, worked fine, but 1500 at least... so I´m wondering if that is intensive or not for flash.... thanks

senocular
06-29-2006, 11:38 PM
it all depends whats in those lines.

If you're worried or want to test something, use getTimer and see how long your code takes to execute
var startTime = getTimer();
// all your code
trace("code execution took "+(getTimer() - startTime)+" milliseconds");

yker22
06-29-2006, 11:48 PM
Thanks senocular... well the code is for a game... and owrks fine... the code is faster that my finger on the mouse :)