i have a movie clip of scissors cutting. 2 instances of it on stage, “scissorsRL” and “scissorsLR”. i have the following code attached to the left scissors:
what i am trying to do is to get the 2 scissors instances to “start over” when the start over button is released. but, if you look at the attachment, you see what it is doing (the scissors are not animating, just increasing or decreasing _x values - i don’t understand why.
the code i have on the start over button is this:
on (release) {
setProperty(“scissorsRL”, _x, “100”);
setProperty(“scissorsLR”, _x, “700”);
}
here is the Flash (i think! - i thought i attached it last time too but it didn’t seem to get posted (?) ). do i have to do something besides just browse so it shows up in the ‘Attach’ window?
anyway, your code works in the same way the setProp one did - i.e., the scissors move across the stage, but they are not cutting…
onClipEvent (enterFrame) {
_x = _x + 10;
if (this._x>=920) {
stop();
//this stop action stops the movieClips animation, not the movement
}
}
I made some adjustments. I made a _root variable called ‘speed’ that’s set at ten. Then your sissors operate on that speed. When it reaches your set boundries, it resets the speed to zero. Then when you hit the button, the button resets the speed back to ten. Now, the animation of the two movieClips will continue off stage. If you want that to stop, I think you know how!!
By the way, in your code, I put in:
_x += speed;
instead of:
_x = _x + speed;
It’s the same thing, I’m just used to doing that. Any questions, ask!!