PDA

View Full Version : animation by clicks ???


goddessasw
10-16-2002, 01:37 AM
I have a animation that becomes
inactive while it plays; I want to be able to have the animation know how many times the user has clicked and then play that many times. So how do I tell the animation keep playing based on users clicks?_
I am using OSx Flash MX and so far have no starting code since I don't know how to approach this problem.

pixelwit
10-16-2002, 03:03 AM
Try putting something similar to this on the first frame of your animated MovieClip:onMouseDown = function(){
clicks++;
}
if (clicks>0){
play();
clicks--;
}else{
stop();
}Hope it helps,

-PiXELWiT
http:///www.pixelwit.com

goddessasw
10-16-2002, 03:31 AM
thanks! :D