Simple Errors in Flash CS6 - ActionScript 3.0 -


this super simple. have created basic replay button in flash cs6 pro, actionscript 3.0. instance name correct, syntax error , '{'expected. doing wrong?

code:

import flash.events.mouseevent;  stop();  playagain_btn.addeventlistener(mouseevent.click, f_playagain);  function f_playagain (event:mouseevent):void {     gotoandplay(1); } 

edit:

the errors follows:

scene=scene 1, layer=actions, frame=1161, line 1 syntax error.

scene=scene 1, layer=actions, frame=1161, line 7 '{' expected.

i believe removing space in here:

f_playagain (event:mouseevent):void 

might job

f_playagain(event:mouseevent):void 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -