Hi. I’m following a tutorial regarding AS in Flash MX 04 Professional and I got stumped by a _global problem.
I have a main movie with two movie clips in it, square and circle.
Square contains a script for a global variable. The tutorial states that a _global variable should be accessible from anywhere, whether in the main movie or within the movie clip (such as in my case).
However, when I use the trace command in the main movie timeline to check for my global variable, I get “undefined.” Supposedly, I’m supposed to get the value of my global variable (“Monday”) in the output window, but all I get is “undefined.”
Can someone please explain to me what I am doing wrong? Appreciate it, thanks.
mynewt
(attached the fla file–it’s pretty simple).