View Full Version : _visible of btn/f1 "true" if f30 played

01-25-2006, 06:12 PM

I want to set _visible of a button on frame 1 to true if frame 30 is played, so that when viewers go to frame 30, they'll have the option to come back to frame 1, and then the button becomes visible. If they haven't come to f 30 yet and come back, the button is invisible.

Thanks for your help.

01-25-2006, 08:14 PM
you can set a variable on frame 30 to true and on frame 1 you check the status of that variables

if (fs == undefined) { // if the variable has not been created
var fs = false; // create our variable
} else {
if (fs == true) { // if variable has been created and their back
btn._visible = true; // set btns visibility
fs = true; // update vars' status

01-25-2006, 09:37 PM
Thanks sophistikat!