[Feature Request] SFSObject/SFSArray check if match

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

Moderators: Lapo, Bax

Post Reply
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

[Feature Request] SFSObject/SFSArray check if match

Post by rjgtav »

Hi guys. Today i was making an app when i realized that i needed to check if two SFSObjects matched. To achieve that i had to convert the SFSObjects to Objects and then i had to create a function that checked if the two objects matched.
This worked fine, but i was wondering what about if there was a built.in fuction inside both SFSObject and SFSArray classes that would check if two of the same type matched?

P.S. By match, i mean checking if two objects/arrays have the same values
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I am sorry I don't think it is possible to create a generic comparison function due to the nature of the SFSObject which can also transport class instances, nested objects etc...
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Post by rjgtav »

Ok, no problem :-)
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Post Reply