Delatory
02-05-2006, 06:39 PM
I've got this script :
this.drawobj.onPress = function() {
_root.createEmptyMovieClip("My_mc", 0);
My_mc.beginFill(0x3399FF, 100);
My_mc.lineTo(100, 0);
My_mc.lineTo(100, 100);
My_mc.lineTo(0, 100);
My_mc.lineTo(0, 0);
My_mc.endFill();
_root.My_mc.onPress = function() {
this.startDrag();
};
_root.My_mc.onRelease = function() {
this.stopDrag();
};
_root.drawobj.onPress = function() {
removeMovieClip("My_mc");
};
};
but when i press drawobj for the second time it removes the movieclip BUT when i press drawobj for the third time it wont make My_mc again. Any Help?
Thanks.
this.drawobj.onPress = function() {
_root.createEmptyMovieClip("My_mc", 0);
My_mc.beginFill(0x3399FF, 100);
My_mc.lineTo(100, 0);
My_mc.lineTo(100, 100);
My_mc.lineTo(0, 100);
My_mc.lineTo(0, 0);
My_mc.endFill();
_root.My_mc.onPress = function() {
this.startDrag();
};
_root.My_mc.onRelease = function() {
this.stopDrag();
};
_root.drawobj.onPress = function() {
removeMovieClip("My_mc");
};
};
but when i press drawobj for the second time it removes the movieclip BUT when i press drawobj for the third time it wont make My_mc again. Any Help?
Thanks.