Hi to everyone
I’m really stucked with action script.I’m new so i don’t have that much experience in programming.
So the problem is the following:
Imagine that i have my _root scene and many layers.In every layer there is only one button or one movie clip.
The problem is with movie clips.The movie clips are used as buttons but i made them movie clips because they include many animated geometrical objects and sounds. So in redcircle_mc (for example) there 10 different layers and every layer is a different geometrical object. For redcircle_mc follows this simple script:
on (press) {
gotoAndPlay (2);
}
So the movie clip starts. In the first frame of movie clip’s timeline i have a stop(); so that doesn’t start automatically. And in the last one another stop(); because i don’t want this to be looped.
That works fine no problem.
The question is : what should i do when an animated object (of the movie clip) starts but in a point i want to stop his movement by pressing the mouse, and don’t let it to continue his prearranged motion? But the other objects should continue their prearranged motion.
I don’t seem to understand the thinking of the programming.
Propably i have to convert this object to movie clip and then??
I’ve tried to do this and then on this new movie clip tried to write:
on (press) {
startDrag (this, true);
}
on (release, releaseOutside) {
stopDrag ();
}
but it doesn’t work. I miss something.
Please can someone help me?