actionscript 3 - Expecting Identifer Before Leftbrace -



actionscript 3 - Expecting Identifer Before Leftbrace -

import flash.events.mouseevent; import flash.net.urlrequest; import flash.net.navigatetourl; var emailflashvariable = "aa@aa.com"; var adfurlnavigator; var adfflashvarsutil; mcbutton.addeventlistener(mouseevent.mouse_up, onclick); function onclick(e:mouseevent):void { adfurlnavigator.navigatetourl(adfflashvarsutil.getparameter("clicktag") + ";cppar=1&emailurlvariable=" + emailflashvariable); var click_url:string = root.loaderinfo.parameters.clicktag; if(click_url) { navigatetourl(new urlrequest(click_url), '_blank'); }

i have updated script above , cleared error messages, not show parameter in url instead got -

typeerror: error #1010: term undefined , has no properties. @ _10792mb_fla::maintimeline/onclick()

you getting >>> :

either function adfclicked(event:mouseevent)

or function adfclicked(event:mouseevent):some_return_type

actionscript-3

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -