evan
03-24-2008, 02:54 PM
In Version two the code looked like this:
stop();
home_btnone.onRelease = function(){gotoAndStop("home");}
home_btntwo.onRelease = function(){gotoAndStop("about");}
home_btnthree.onRelease = function(){gotoAndStop("contact");}
-this works.
On another thread I saw this example given given to describe trigger mouse event using actionscript 3 -but to display text.
It looks like this:
function eventResponse(evt:MouseEvent):void {
output_txt.text = “Button was clicked!”;
}
button_btn.addEventListener(MouseEvent.MOUSE_UP,eventResponse);
I tried to do this with it:
function eventResponse(evt:MouseEvent):void {
gotoAndStop("contact");}
contact_btn.addEventListener(MouseEvent.MOUSE_UP,eventResponse);
-I get no errors but it just keeps playing without responding to my button.
-Also How do I set this up with more than one button?
-some help greatly appreciated(the tutorials I find seem to cover AS 2-bummer) :confused:.
stop();
home_btnone.onRelease = function(){gotoAndStop("home");}
home_btntwo.onRelease = function(){gotoAndStop("about");}
home_btnthree.onRelease = function(){gotoAndStop("contact");}
-this works.
On another thread I saw this example given given to describe trigger mouse event using actionscript 3 -but to display text.
It looks like this:
function eventResponse(evt:MouseEvent):void {
output_txt.text = “Button was clicked!”;
}
button_btn.addEventListener(MouseEvent.MOUSE_UP,eventResponse);
I tried to do this with it:
function eventResponse(evt:MouseEvent):void {
gotoAndStop("contact");}
contact_btn.addEventListener(MouseEvent.MOUSE_UP,eventResponse);
-I get no errors but it just keeps playing without responding to my button.
-Also How do I set this up with more than one button?
-some help greatly appreciated(the tutorials I find seem to cover AS 2-bummer) :confused:.