all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

_global vars don't work in mx2004



_global vars don't work in mx2004 rollingstonex
7/29/2004 11:50:34 PM
flash actionscript: I just recently started using Flash MX2004 Pro but it seems that whenever I
save my files (and choose the option to save them as MX2004 versions) that
things stop working. Variables that I had used which were _global, started
being undefined to outside timelines and movieclips. Another problem I noticed
was that Flash no longer recognized movieclips (or text fields for that matter)
embedded within other movieclips. For example, if the textfield message was
embedded in the movie clip myclip, I could no longer change the text by using
_root.myclip.message.text = "" . Any help? or ideas?
Thanks.
Re: _global vars don't work in mx2004 Rothrock
7/30/2004 12:55:19 AM
I know that somebody here awhile ago was having a problem with _global. It
turned out some of his swfs were in MX04 and others were in MX. When they were
all in MX04 the problem was fixed.

Not sure about the other problem. The obvious thing to check first is of
course that capitalization and all is correct. It didn't matter under AS 1, but
is important under AS 2.

When testing the moving using ctrl-enter, you can go to the debug menu and
list objects. Just to check that you have loaded it where you think it should
be.
Re: _global vars don't work in mx2004 rollingstonex
8/9/2004 7:01:32 PM
AddThis Social Bookmark Button