I have recently read and practiced the instructions given in “Buttons in Flash” tutorial on this site, and although everything works beautifully it does not give me the code for linkage i.e. either external website or mail.
The existing code is:
[SIZE=1][COLOR=blue]function setupEvents() {
// associate events with event handlers
myButton.addEventListener(MouseEvent.CLICK, clickButtonHandler);
myButton.addEventListener(MouseEvent.MOUSE_OVER, hoverButtonHandler);
}
setupEvents();[/COLOR][/SIZE]
[SIZE=1][COLOR=blue]function clickButtonHandler(e:MouseEvent) {
//trace(“Clicked Button!”);
outputField.text = “Clicked”;
}[/COLOR][/SIZE]
[SIZE=1][COLOR=blue]function hoverButtonHandler(e:MouseEvent) {
//trace(“Hovered Over Button!”);
outputField.text = “Hovered”;
}[/COLOR][/SIZE]
How do I include the relevant behaviours to these buttons?
I would appreciate your URGENT advises.
Thank you in advance.
Lisa