# How to get the object name?

**URL:** <https://forum.kirupa.com/t/how-to-get-the-object-name/293578>\
**Category:** Uncategorized\
**Created:** [July 31, 2009, 12:10am UTC](https://forum.kirupa.com/t/how-to-get-the-object-name/293578 "2009-07-31T00:10:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac345](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mac345](https://forum.kirupa.com/u/mac345)\
**Post date:** [July 31, 2009, 12:10am UTC](https://forum.kirupa.com/t/how-to-get-the-object-name/293578/1 "2009-07-31T00:10:50Z")

</div>

Hi,  
if we have a code like  
var forumpanel:Panel=new Panel();

And in the later part of the code i want to push the name of that panel to an array the i am using

samplearr.push(forumpanel.name);

But the actual name is not getting stored into the array and it is taking something like “Panel1704”

So how can i get the original name into the array.

-Thanks
