home *** CD-ROM | disk | FTP | other *** search
- package classes
- {
- import flash.display.MovieClip;
- import flash.events.MouseEvent;
- import libs.kjc.KJC_general;
-
- [Embed(source="/_assets/assets.swf", symbol="classes.SndBtn")]
- public class SndBtn extends MovieClip
- {
-
- private static var frm:int = 1;
-
-
- public function SndBtn()
- {
- super();
- this.mouseChildren = false;
- this.gotoAndStop(frm);
- KJC_general.btnOn(this,btnClick);
- }
-
- private function btnClick(param1:MouseEvent) : void
- {
- if(this.currentFrame == 1)
- {
- frm = 2;
- Main.setSoundFn(0);
- this.gotoAndStop(frm);
- }
- else
- {
- frm = 1;
- Main.setSoundFn(1);
- this.gotoAndStop(frm);
- }
- }
- }
- }
-