[Actionscript]How to display the information inside an array of objects

47 Views Asked by At

I'm currently trying to work on a mod for a game and when I display the array all I see is [object Object]. I'm wanting to actually see the information inside of the array. I'm new to actionscript so I feel as if it's probably a simple issue that I'm overlooking.

I've tried everything below. I'm expecting it to return the actual stored information, ex: ids, item name, etc.

if(param1.keyCode == 89)
{
    GlobalFunc.SetText(this.debugMenu,String(this.m_TheirOffersData[0].toString()),false);
    GlobalFunc.PlayMenuSound(GlobalFunc.MENU_SOUND_OK);
}
if(param1.keyCode == 85)
{
    for(var id in this.m_TheirOffersData)
    {
        var value:Object = this.m_TheirOffersData[id];
        GlobalFunc.SetText(this.debugMenu,this.trProgress = this.trProgress + trace(id + " = " + value),false);
    }
    GlobalFunc.PlayMenuSound(GlobalFunc.MENU_SOUND_OK);
}
0

There are 0 best solutions below