English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have a variable in my movie clip.
when i use trace inside the movie clip it shows the right value but when i use the trace in the root level it's value is undefined.
i think it is a global variable because i didnt use var at the begining.
this isthe script:
on (release){
_root.asd2.gotoAndStop (1);
asd = "windows";
trace (asd);
this.gotoAndStop(2);
}

2006-08-20 04:29:25 · 2 answers · asked by aryaxt 3 in Computers & Internet Programming & Design

2 answers

To set the var in root add this to your code:
_root.asd = "windows";

2006-08-20 08:14:18 · answer #1 · answered by Michael T 2 · 2 0

Remember the variable is defined for that movie clip only. Not to the whole solution.

2006-08-20 13:14:30 · answer #2 · answered by ? 6 · 0 0

fedest.com, questions and answers