how to reuse a function in another frame in Macromedia Flash?

  • Thread starter Thread starter HKBU_David
  • Start date Start date
H

HKBU_David

Guest
Hi,

I was creating a very simple animation in Macromedia Flash 8.
I wrote a function and placed in Frame 1.
Here is the code accordingly:

function showMe(){
if (this._x>Stage.width()){
trace(this._x)}
}

But it showed nothing when I tried to reuse the function in Frame 1
for another movieClip in Frame 2:
onClipEvent (enterFrame) {
showMe();
}

I have no idea why it showed me nothing.
Could anyone help please?

David
 
Back
Top