SFSObject.newFromObject

Post here your questions about the Flash / Flex / Air API for SFS2X

Moderators: Lapo, Bax

dingo
Posts: 98
Joined: 27 Jan 2009, 21:34

SFSObject.newFromObject

Postby dingo » 02 Feb 2011, 21:41

hi there

i think newFromObject is detecting the Arrays incorrectly. The following code:

Code: Select all

var firstArray:Array = new Array();
firstArray[0] = new Object();
var secondArray:Array = new Array();
secondArray.push(new Object());
            
var o:Object = new Object();
o.firstArray = firstArray;
o.secondArray = secondArray;
            
var sfso:SFSObject = SFSObject.newFromObject(o);


detects firstArray and secondArray as SFSObjects (Type:18 ):
Image

Also visible in the Dump:

Code: Select all

   (sfs_object) firstArray:
      (sfs_object) 0:
   
   (sfs_object) secondArray:
      (sfs_object) 0:


On a side note, any release news on RC1c ? :P
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 28 Feb 2011, 16:18

Excellent Dingo,
you have found a very specific case in which this can happen, because it only happens in this case with an Array with 1 element inside of type Object :)
Otherwise it works just great.

Maybe it's a fluke, but we could hire you as a tester! :D
Nice find, we'll fix it in the upcoming version.

stay tuned.
Lapo
--
gotoAndPlay()
...addicted to flash games
dingo
Posts: 98
Joined: 27 Jan 2009, 21:34

Postby dingo » 01 Mar 2011, 09:10

Well, we have to stomp all bugs! Even the little ones, some say those are the meanest :D

I'm glad we can help each other.

Return to “SFS2X ActionScript 3 API”

Who is online

Users browsing this forum: No registered users and 16 guests