# Making a textfield invisible?

**URL:** <https://forum.kirupa.com/t/making-a-textfield-invisible/205449>\
**Category:** flash\
**Created:** [October 29, 2006, 8:55pm UTC](https://forum.kirupa.com/t/making-a-textfield-invisible/205449 "2006-10-29T20:55:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikenificent](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@mikenificent](https://forum.kirupa.com/u/mikenificent)\
**Post date:** [October 29, 2006, 8:55pm UTC](https://forum.kirupa.com/t/making-a-textfield-invisible/205449/1 "2006-10-29T20:55:42Z")

</div>

Hello,

I’m trying to make it when you click on the Photos button the text field behind the movie clip which loads the gallery.swf invisible because I am using xml and would like for the textfield to be invisible because I’m also using the scroller component, I tried this code but it did not work:

```auto
butPhotos.onRelease = function() {
    mytextField._visible = false;
    myTextField.htmlText = text_4;
    myTitleText.htmlText = title_4;
    empty_mc.loadMovie("gallery.swf")
};

```

Can I do this using code or is it easier to make a new frame and deleting the textfield and scroller and just on the butPhotos tell it to go to that frame and when you click on any other of the buttons which need to load in xml just tell it to go to the frame with the textfield and scroller on it.

Thanks

Mike
