This content has been marked as final. Show 4 replies
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....
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
ack! the DOWN and LEFT keys... jeez whats wrong with me today haha
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.