# Help Controlling \_visible with external data

**URL:** https://forum.kirupa.com/t/help-controlling--visible-with-external-data/203643
**Category:** flash
**Created:** [October 12, 2006, 7:07pm UTC](https://forum.kirupa.com/t/help-controlling--visible-with-external-data/203643 "2006-10-12T19:07:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thaiice](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@thaiice](https://forum.kirupa.com/u/thaiice)
#### Post date: [October 12, 2006, 7:07pm UTC](https://forum.kirupa.com/t/help-controlling--visible-with-external-data/203643/1 "2006-10-12T19:07:02Z")

</div>

Can someone out there help me out? I am pulling in text through a .txt file using LoadVars(). The part I need help with is I’m trying to control the visibility of a movie clip using the data in the text file.

Text file: &imgVis = off

Then that comes into Flash and into an if statement.

\_global.vis = myData1.imgVis;  
if (\_global.vis == “off”){  
\_root.body\_mc.one\_mc.\_visible = false;  
}  
else{  
\_root.body\_mc.one\_mc.\_visible = true;  
}

That doesn’t seem to work for me. Doesn anyone know what I’m doing wrong or another solution?

Thanks.
