# AS3 class function didn't work on .swf?

**URL:** <https://forum.kirupa.com/t/as3-class-function-didnt-work-on-swf/319319>\
**Category:** Uncategorized\
**Created:** [February 16, 2011, 7:02am UTC](https://forum.kirupa.com/t/as3-class-function-didnt-work-on-swf/319319 "2011-02-16T07:02:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![potatoes](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@potatoes](https://forum.kirupa.com/u/potatoes)\
**Post date:** [February 16, 2011, 7:02am UTC](https://forum.kirupa.com/t/as3-class-function-didnt-work-on-swf/319319/1 "2011-02-16T07:02:27Z")

</div>

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. ☹

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. :}
