Adobe Flash CS4 frame-switching button not working -


i'm coding proof-of-concept experiment myself buttons switching frames in flash cs4. whenever press button when run however, gives error message, , don't know means. "argumenterror: error #1063: argument count mismatch on untitled_fla::maintimeline/nextframe(). expected 0, got 1.". help?

stop(); var page = 1; button.addeventlistener(mouseevent.click, nextframe); function nextframe(){ gotoandplay(2); }; 

it means nextframe() function expected no arguments instead received one.

this happens because using nextframe() listen events: in as3, event listener functions receive event object listening for.

i prefer solve problem adding argument when don't use it:

function nextframe(e: event){   gotoandplay(2); }; 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -