Thursday, May 24, 2012

[Action Script] problem with root & function May,2012

hi ppl
i have problem when i call root from linkage button

on mainstage i have

function firstFunction():void {

var basename:String = "pictureNumber";

}
and in linkege button have code on click to trace
trace (basename);
insted i got mesage pictureNumber i got "Variable basename is not defined."
when i do this
basename = root.basename;
i got mesage "undefined"

any help ?
problem with root & function

Related Post



0 comments: