This content has been marked as final. Show 7 replies
use a boolean and boundary test to toggle your onEnterFrame so you're not repeatedly defining it. then delete your onEnterFrame when your mouse is outside that boundary and reset that boolean.
the boolean wont work in this situation because i need the movieclip to stop when the mouse stops, no matter where the mouse is on the stage. its driving me nuts :S
Go back to using the onMouseMove code and at the end of the function
add updateAfterEvent(). Then in the movie properties, increase your FPS to 24 - 30 and see if that makes a difference in smoothness.
you want the movieclip to stop tweening when the mouse stops moving?
Hey FlashTastic, i tried that, its alittle better but its still choppy, the client wont like it so i cant do that....
And kglad, i do want it to stop when the mouse stops and the move again when the mouse moves.
Ill show you guys another piece of code(i got from the internet) that does stop when the mouse stops, the only problem is i cant control the boundories of the movieclip, its only relative to the stage.
now the piece of code that says:
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
i know this controls the when it stops, but i need it to stop at the 280px mark then then at the 380px(bounderies)
did i explain it proper?
Add this code directly after target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
OMG FlashTastic Thanks!!! that makes so much sense, and it all work! thanks alot, now i gotta get the timing right... but thanks alot to everyone that helped out, (wat a simple way of doing it too) ... imma study harder