# .\_name VS name

**URL:** <https://forum.kirupa.com/t/-name-vs-name/12845>\
**Category:** flash\
**Created:** [February 5, 2003, 7:33am UTC](https://forum.kirupa.com/t/-name-vs-name/12845 "2003-02-05T07:33:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![catalas](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@catalas](https://forum.kirupa.com/u/catalas)\
**Post date:** [February 5, 2003, 7:33am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/1 "2003-02-05T07:33:21Z")

</div>

Hi ,  
I am developing an application on flashcom. When I try to edit some flashcom component, I found some strange in the script.  
In the connect function of AVPresence, there is code like:

this.username = username;  
var pmc = this.component;

// CONFUSE these 2 lines  
pmc.\_name = this.\_name;  
pmc.name = pmc.\_name;  
// CONFUSE

pmc.prefix = “FCAVPresence.” + pmc.name + “.”;  
this.component = pmc;   
this.component.soName = this.\_parent.\_name + “presence”;  
this.component.connect(nc);

is it difference about .name and .\_name???  
what is the difference??

---

<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:** [February 5, 2003, 7:38am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/2 "2003-02-05T07:38:11Z")

</div>

not a wizard here but as I see it…

‘name’ is a variable that has to get assigned a value.

‘\_name’ is a property just as ‘\_width’, ‘\_scale’ or ‘\_x’

---

<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:** [February 5, 2003, 7:39am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/3 "2003-02-05T07:39:48Z")

</div>

O…the “name” is a variable only??

---

<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:** [February 5, 2003, 7:50am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/4 "2003-02-05T07:50:52Z")

</div>

Yeah, name is no set feature in Flash so therefore it thinks it is just a regular variable.

\_name is a property in Flash so you need to use that.

---

<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:** [February 5, 2003, 7:53am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/5 "2003-02-05T07:53:37Z")

</div>

Trace this…

Create a movie clip on the stage… Give it the instance name “mc” (no quote).

Right click on the clip and open the actions panel.

Apply these actions…

```php
onClipEvent (load) {
	trace(this.name);
	trace(this._name);
}

```

When you test the movie it will output…

undefined  
mc

Now try this…

```php
onClipEvent (load) {
	name = "Variable";
	trace(this.name);
	trace(this._name);
}

```

When you test the movie the output will be…

Variable  
mc

---

<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:** [February 5, 2003, 7:59am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/6 "2003-02-05T07:59:32Z")

</div>

Be careful listining to lostinbeta, he is a little self serving and misleading

---

<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:** [February 5, 2003, 8:18am UTC](https://forum.kirupa.com/t/-name-vs-name/12845/7 "2003-02-05T08:18:30Z")

</div>

> \*Originally posted by rynoe \*  
> \*\*Be careful listining to lostinbeta, he is a little self serving and misleading \*\*

You know what \<B\>rynoe\</B\> I am tired of your crap. I don’t have a clue what you have against me, but it’s getting old. It isn’t my fault you are rude to new members.

Why you keep starting with me I don’t know, but frankly, I don’t really care man.

This is your first ban warning. It was discussed with the mods and agreed upon that if you keep instigating fights (given rights by kirupa himself after reading some of the arguments you caused), we have the right to ban you. So either clean up your act now or get out, the choice is yours and these are your only options. We dont tolerate @$$holes here thank you very much.

NOTE TO CATALAS: Rynoe is the forum trouble starter so don’t think this is the first time.
