# Silly question

**URL:** <https://forum.kirupa.com/t/silly-question/15732>\
**Category:** programming\
**Created:** [March 17, 2003, 6:25pm UTC](https://forum.kirupa.com/t/silly-question/15732 "2003-03-17T18:25:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dj\_Dove](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@Dj\_Dove](https://forum.kirupa.com/u/Dj_Dove)\
**Post date:** [March 17, 2003, 6:25pm UTC](https://forum.kirupa.com/t/silly-question/15732/1 "2003-03-17T18:25:29Z")

</div>

I cant hide a variable on a clip:

I have a clip who display this :

Name : [name]  
Address : [address]  
Phone : [phone]

if I want to hide the phone number, how I can do that ?

I’ve tried this :

phone.\_visible = False

but it doesn’t work.

☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 17, 2003, 7:42pm UTC](https://forum.kirupa.com/t/silly-question/15732/2 "2003-03-17T19:42:31Z")

</div>

well …

**\_visible** is a property [size=1]MovieClip.\_visible Button.\_visible TextField.\_visible[/size] so i don’t think you can do that

you’d need to either delete or _clear_ the variable:

```auto
delete phone;
// or
phone = "";

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 17, 2003, 9:32pm UTC](https://forum.kirupa.com/t/silly-question/15732/3 "2003-03-17T21:32:45Z")

</div>

or try to put a mask over it, because i dont think you’d want to actually delete the variable…  
but why would you want to hide it if you display it ?  
other take the length of the string and replace it by \*s…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 12:31pm UTC](https://forum.kirupa.com/t/silly-question/15732/4 "2003-03-18T12:31:09Z")

</div>

I explain why I will hide this variable :

1. The same movie can be viewed by user and admin.

2. Admin can view all variables displayed, and User can view only [name] & [address]. I dont want they can view the [phone].

3. my variables are loaded with the command “Loadvariablenum”

4. I have a global variable who say it’s a user or an admin is currently showing the movie.

I have tried to **delete phone** but it doesn’t work after my loadvariablenum . I have tried **phone = “”;** but it doesn’t work to.

I am desesperate… ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 12:38pm UTC](https://forum.kirupa.com/t/silly-question/15732/5 "2003-03-18T12:38:37Z")

</div>

try to put the variables into a MC and hide the MC with a setProperty 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 6:48pm UTC](https://forum.kirupa.com/t/silly-question/15732/6 "2003-03-18T18:48:53Z")

</div>

Use an if statement.

[AS]if (user == admin){  
phone = “number here”;  
} else {  
phone = “Must be Admin”;  
}[/AS]

You check if the user is admin, and if that is true, the phone number shows, but if its false, the phone number box shows “Must be Admin”

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 6:50pm UTC](https://forum.kirupa.com/t/silly-question/15732/7 "2003-03-18T18:50:59Z")

</div>

Thanks for Your help 😃 I have found a solution.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 18, 2003, 6:51pm UTC](https://forum.kirupa.com/t/silly-question/15732/8 "2003-03-18T18:51:33Z")

</div>

Alright.
