View Full Version : Simple _global not working!
earph
August 27th, 2003, 03:43 PM
This is plain and simple, why is it not working?
BUTTON
_global.section = "GettingStarted/GettingStarted.swf";
_ROOT FRAME
_root.loadBox.loadMovie(section);
Thanks ahead of time!
senocular
August 27th, 2003, 03:58 PM
what frame? When is that frame run? AFTER the button is pressed?
pom
August 27th, 2003, 04:43 PM
Try to
trace (section) ;before loading the movie :)
earph
August 28th, 2003, 12:21 PM
I'm gonna change the code on you real fast, but it's the same situation.
My _root is stopped on a frame which has this code:
_root.titleBox.attachMovie(title,"newtitle",1);
The buttons has this:
_global.title = "gettingStartedTitle";
When the button is pressed, the _root does not move, it stays "stopped" in that frame.
I don't understand why some of my _globals will work when stopped in a single frame, but others won't. All this was working before.... I don't know what has gone wrong.
I can provide the souce if you like...
I appreciate the help.
rolando.lopez
August 29th, 2003, 10:34 AM
When you try tro reference title is is looking for _root.title. Try prefacing it with _global.
_root.titlebox.attachMovie(_global.title,"newtitle",1);
That should do it.
earph
August 29th, 2003, 03:12 PM
Sorry Rolando... that didn't work either. I've attached an example so all you peeps can see how weird these _globals are acting.
Check it out.
rolando.lopez
August 29th, 2003, 04:28 PM
skillet,
Because you have
_root.titleBox.attachMovie(_global.title,"newtitle",1); in the first frame it only happens upon loading the file. When you click one of the buttons the _global is set but nothing else happens. Put the above code in the on(release) command of each button.
earph
August 29th, 2003, 04:50 PM
Ah, I see, but in that case, it'd probably just be easier to do it this way.
_root.titleBox.attachMovie("movieTitle1","newtitle",1);
Less code.... No reason to set a _global if it's going to excute on the very next line of code.
I appreciate all the help!
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.