Hi there.
I’m currently playing with the draw API function within Flash MX.
So i have a MC containing 2 buttons (1 per frame).
so it goes: (1st frame 1st button)
for the button:
on (press){
createEmptyMovieClip(“myClip”,1);
myClip.lineStyle(12,0xFF0000,100);
nextFrame();
and a Stop(); for the frame
(2nd frame 2nd button)
for the button:
on (press){
prevFrame();
}
and on the frame:
onMouseDown = function () {
myClip.moveTo(_xmouse, _ymouse);
onMouseMove = function () { myClip.lineTo(_xmouse, _ymouse);};
};
onMouseUp=function(){
onMouseMove=null;
}
stop();
SO this works, when i click the 1st button, my button changes to the 2nd one and it draws wherever i move the mouse.
My problem is i wanna disable the function when i come back to the 1st frame so it doesnt draw anymore. I’m having 2 buttons cause i have some other code i haven’t written here cause it’s no use for my prob.
Can anyone help me out?
TiA