# Why \_visible=true doesnt work?

**URL:** <https://forum.kirupa.com/t/why--visible-true-doesnt-work/218220>\
**Category:** flash\
**Created:** [March 5, 2007, 11:34pm UTC](https://forum.kirupa.com/t/why--visible-true-doesnt-work/218220 "2007-03-05T23:34:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michey](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@michey](https://forum.kirupa.com/u/michey)\
**Post date:** [March 5, 2007, 11:34pm UTC](https://forum.kirupa.com/t/why--visible-true-doesnt-work/218220/1 "2007-03-05T23:34:25Z")

</div>

I have an horizontal sliding mc.When the target position is reached, I set the buttons to \_visible=false, they are no more useful because the end of slider is reached.But then I want to set them to \_visible=true when the slider changes the position back.  
Everything works except \_visible=true.  
Can someone tell me why?

```php
import mx.transitions.Tween;
import mx.transitions.easing.*;
new Tween(mc, "_x", Bounce.easeOut, 1151, 0, 1, true);  
var target = 0;  
next.onRelease = function() {  
    target -= 770;  
    new Tween(mc, "_x", Strong.easeInOut, mc._x, target, 1, true);  
    if (target == -770) {  
        this._visible = false;
  trace(target)
    } else {  
        this._visible = true;  
    }  
};
prev.onRelease = function() {  
    target += 770;  
    new Tween(mc, "_x", Strong.easeInOut, mc._x, target, 1, true);  
    if (target == 0) {  
        this._visible = false;
                          trace(target)
    } else {  
        this._visible = true;  
    }  
};  

```
