Thank you, maccer...
I am fairly new to Flash, so bear with me...

I tried your suggestion with no succes due to lack of my knowledge on prototype... I am reading as much as I can right now about this prototype...
However, I have some problem understanding the use of this prototype in my program...
As for my understanding, prototype in Flash is creating a base object and the child objects of that object can inherit all the properties and functions of the parent object... Am I right??? It seems to me that this prototype is almost same as instanciating objects in Java if I may say...
The problem is that I do not have instanciated the prototype object in my movie at all, so how am I use the stolAll() function???
Basically I tried this... I changed the base name(?) of the prototype to Crane and put it to the first frame of the first scene...
Code:
Crane.prototype.stopAll= function () {
if (goPlay && (play)) {
trace("currentFrame = " + _currentFrame);
gotoAndStop (_currentframe);}};
and a couple of the moving movieclip throughtout the entire movie are Crane and Timer movieclips, in scene 2, so I've put the following on each movieclips...
Code:
onClipEvent (enterFrame) {
this.stopAll();
}
and on one of the empty movieclip that I have put all my scripts, I've put the following codes...
Code:
...
...
else if(Key.isDown(80))
{ // P
trace("P has been pressed for Pause");
_root.Paused = true;
Crane.goPlay = false;
_root.Crane.goPlay = false;
Timer.goPlay = false;
_root.Timer.goPlay = false;
}
else if(Key.isDown(85))
{ // U
if (_root.Paused)
{
trace("U has been pressed for UnPause");
Crane.goPlay = true;
_root.Crane.goPlay = true;
Timer.goPlay = true;
_root.Timer.goPlay = true;
_root.Paused = false;
}
}
On playtime...
I pressed 'P' key and 'U' key then I see following statements are working on the output window...
trace("P has been pressed for Pause");
trace("U has been pressed for UnPause");
I do not see either Crane or Timer stopping after the key press... as a matter of fact, I do not think stopAll() on each movieclips are working because my trace statement in the prototype is not showing anything at all...
I am still trying to figure it out myself...
A couple of tips from the masters would help me a lot...
Thank you and have a nice weekend...
Jason