|
-
Registered User
Oh, well, that's easy. You have to think of it like this; any swf loaded into another, becomes as much a part of the main movie as if it were made there. In fact, when it is loaded, level or empty clip, it's just exactly like a movie clip object in the main movie.
so to store variables, always name them _root.something. That way, they are stored in the root movie memory, and can be called into use by and when any other swf is loaded into it. so they would be;
_root.lives = and _root.score =.... Those can then be accessed in any movie loaded into the main movie or by the main movie just using the same names.
Using _root is much better than using _global, more dependable. I've had trouble using more than 2 global variables in the past, where you can name as many as you want with _root, and they always work.
Last edited by Ask The Geezer; 11-25-2005 at 09:11 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|