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

flash actionscript

group:

_global variables "lost" in movie loaded with loadMovie()


_global variables "lost" in movie loaded with loadMovie() Richard Butler
10/28/2004 6:04:05 PM
flash actionscript:
Hi guys,

I am loading a movie "functions.swf", which contains several _global scoped
functions, into my main "interface.swf". When I dump all objects in the
output window, I can see the functions are there within the _global object.
However, when I try to call one of these functions from interface.swf, I get
undefined. I have also tried trace() from interface.swf, and it recognises
the function because I get "[type function]".

Functions.swf simply includes functions.as. And the odd thing is, that when
I include functions.as straight into interface.swf, everything works fine.

Anyone else stumbled across a similar problem?

Cheers,
Rich

Re: _global variables "lost" in movie loaded with loadMovie() theco
10/28/2004 9:49:24 PM
Well I have this questions

your global variable are in the level 0 ?
did any other movie are replacing this movie from its level ?
Can I see your code ? that help to help you

[quoted text, click to view]

AddThis Social Bookmark Button