Controlling Button visibility from an external file


I have a site that I am almost done with, but I need to figure out how to control the visibility of certain buttons from an external file (like scroll bars). I have been able to do this with button function using a loaded variable and if statements on button release, but I have been unable to replicate this with visibility. I really need the button to be visible or not from the initial load of the .swf file. Any suggestions? I currently have to open flash and change the action script within the flash file and export a new .swf, and I want to be able to do it by changing a .txt file.


Inside a textfile, or however you want to pass it in just use a 1 or a 0 or something like that. Once the variable is loaded

if(someVar ==1){
somebutton._visible = true;
somebutton._visible = false;

So the answer I think you were looking for was

something._visible = true;