|
-
wont let me upload the .as file -
package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.text.*;
public class buttonTest2 extends MovieClip {
public var sfgovStat:Boolean = false;
// create a new LocalConnection instance used to send
// calls to a LocalConnection instance in another movie
var outgoing_lc:LocalConnection = new LocalConnection();
public function buttonTest2() {
btn1.buttonMode = true;
btn2.buttonMode = true;
btn3.buttonMode = true;
bg.buttonMode = true;
btn1.addEventListener(MouseEvent.CLICK, myTrace);
btn2.addEventListener(MouseEvent.CLICK, myTrace);
btn3.addEventListener(MouseEvent.CLICK, myTrace);
bg.gotoAndStop(1);
bg.addEventListener(MouseEvent.ROLL_OVER, myPlay);
bg.addEventListener(MouseEvent.ROLL_OUT, myRewind);
}
// event handler when the send button is clicked
function myTrace(event:MouseEvent):void {
trace("Home --> Click");
}
function myPlay(event:MouseEvent):void {
if (!sfgovStat) {
trace("false");
bg.play();
sfgovStat = true;
} else {
}
}
function myRewind(event:MouseEvent):void {
trace("Mouse Out goto and play 20");
bg.gotoAndPlay(20);
sfgovStat = false;
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|