# movieClip.\_visible not working as expected \[Flash Pro 8\]

**URL:** <https://forum.kirupa.com/t/movieclip--visible-not-working-as-expected-flash-pro-8/208830>\
**Category:** flash\
**Created:** [December 3, 2006, 5:29am UTC](https://forum.kirupa.com/t/movieclip--visible-not-working-as-expected-flash-pro-8/208830 "2006-12-03T05:29:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathminded](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathminded](https://forum.kirupa.com/u/mathminded)\
**Post date:** [December 3, 2006, 5:29am UTC](https://forum.kirupa.com/t/movieclip--visible-not-working-as-expected-flash-pro-8/208830/1 "2006-12-03T05:29:32Z")

</div>

I have some AS that creates a movie clip and later tries to make it go away. However, \_visible isn’t working as I would think. Here’s a sample:

I create the triangle:

```auto

 triangle30 = createEmptyMovieClip("triangle30", this.getNextHighestDepth());
 with(triangle30) {
  lineStyle(1, 0xff0000, 100);
  moveTo(0,0);
  lineTo(10,10);
  lineTo(0,10);
  lineTo(0,0);

```

and then later try to make it go away:

```auto
triangle30._visible = false;

```

It doesn’t work, however. So, I tried trace(triangle30.\_visible) both before and after the second chunk of code, and it does indeed change from true to false. However, the movie clip is still visible on the screen. Any idea what’s going on?

-Mathminded
