CS3 Action Scripting - How do i get buttons to link to scenes?
Hi there. With this new cs3 they dont make it easy :P How do i link buttons with actionscripting to just go to another scene? So Onclick it will move to scene 2 etc
Computers & Internet - Macromedia - Flash MX
Answers & Comments
It looks crazy but AS 3.0 is too easy and takes half of the time what you took to learn flash AS 2.0 . Button Script in AS 2.0 is like below and you were able to put the script in buttons/movieClip
on(release){
whatTodo();
}
but in as3.0 only you can use frames to add script and must use listeners for buttons. like
buttonName.addEventListener(MouseEvent.CLICK,dothis);
function dothis(evt:Event){
do_this_function();
}
evt:Event is must. it is passing the event object when u click on button.