This content has been marked as final.
Show 4 replies
-
1. Re: possible setInterval problem when using preloader
Greg Dove Aug 19, 2007 1:08 PM (in response to kamckng)I can't really see any difference between them sorry... I tried both. Your interval isn't being called until the the button is pressed so I don't think its related to setInterval. And the up and down keys didn't work for me in either one... d & f did for the top refrigerator.
In the loader swf I did wonder whether you should set the onEnterFrame to null or delete it for the preloader before you use removeMovieClip on it, but I don't think that is a problem as its onEnterFrame didn't seem to be running after removeMovieClip had happened. I think removeMovieClip cleans that up when it removes the clip.
Sorry I can't suggest anything...perhaps I wasn't noticing the right thing.... -
2. Re: possible setInterval problem when using preloader
kamckng Aug 19, 2007 1:17 PM (in response to kamckng)You didnt notice difference in speeds on the two different ones? I can't believe it's my computer but it must be then... was it running smoothly on both? and as for the up and down keys... that's a typo... it should have been the up and left keys haha
thanks for the reply thouhg.. if you could just let me know if it ran smoothly for you on both files... if so it must have just been my comtpuer hmm -
3. Re: possible setInterval problem when using preloader
kamckng Aug 19, 2007 1:20 PM (in response to kamckng)ack! the DOWN and LEFT keys... jeez whats wrong with me today haha -
4. Re: possible setInterval problem when using preloader
Greg Dove Aug 20, 2007 12:59 AM (in response to kamckng)I just tried again. I didn't notice anything really - they both worked fine for. And yes the down and left keys work.
I think the speed is just dependent on toggling between the keys.
You might want to play with the interval timing.
Things that can affect the interval are :
Movie frame rate
frame based code (e.g. onEnterFrame code)
I didn't go through your code in detail because I didn't really notice the difference so couldn't be sure if there was a problem or not.

