Announcement

Collapse
No announcement yet.

"GetElementInt" Doesn't work !

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    "GetElementInt" Doesn't work !

    Hi everybody !

    I'm sending many array to flash from udk to show in menu.
    everything works except Int-array !
    Code:
    local GFxObject obj_Rank;
    obj_Rank = myHudWrapper.myMenu.CreateArray();
    obj_Rank.SetElementInt(0,45);
    obj_Rank.SetElementInt(1,67);
    obj_Rank.SetElementInt(2,65);
    anObjectinFlash = // a object in flash that I created before ( I use this way for all other working-array)
    anObjectinFlash.SetObject("itemsRank", obj_Rank);
    
    `log( anObjectinFlash.GetObject("itemsRank").GetElementInt(0) ); //=> Log: UGFxMoviePlayer::GetElementInt(): value is not a number. Returning 0.
    But I've just found a alternative... In fact Get/SetElementFoat Works normally and I can use it simply.

    Does anybody else encounter similar problem with Get/SetElementInt ?
Working...
X