AS3 class function didn't work on .swf?

Hello, I’m now learning about class function on AS3, and I have little problems that may appear as a noob question, but I have searched everywhere else, and still found nothing. :frowning:

I make a function class separate on .as file, then I call the class fuction to attached the class function to a MovieClip.
The class function working fine when I tested on TestMovie ( Ctrl+Enter ) The movieclip can be dragged.
but when I double clicked it from .swf file (from windows explorer) , the movieclip function didn’t work at all?
And it works well also on .EXE file, just didn’t work on .swf file ?
What did I miss?

Thanks for your help
I’m really appreciate it. :}