How to get the object name?

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


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.