Convert SFSObject to js normal object?

Post here your questions about the HTML5 / JavaScript for SFS2X

Moderators: Lapo, Bax

User avatar
khanhdev
Posts: 14
Joined: 24 Mar 2017, 11:32

Convert SFSObject to js normal object?

Postby khanhdev » 20 Jun 2017, 09:39

In version 1.7.2, how to convert sfsobject to normal jsobject. I want it to be easier to see than when logging on the browser.
Sorry for my English :)
User avatar
Lapo
Site Admin
Posts: 19676
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Convert SFSObject to js normal object?

Postby Lapo » 20 Jun 2017, 09:49

Hi,
there's no need to convert an SFSObject. You can dump it's content to the console, via:

Code: Select all

trace(sfsobject.getDump())


This will show all the content, including nested SFSObjects/Arrays

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
khanhdev
Posts: 14
Joined: 24 Mar 2017, 11:32

Re: Convert SFSObject to js normal object?

Postby khanhdev » 20 Jun 2017, 10:19

Lapo wrote:Hi,
there's no need to convert an SFSObject. You can dump it's content to the console, via:

Code: Select all

trace(sfsobject.getDump())


This will show all the content, including nested SFSObjects/Arrays

cheers


thank Lapo :D

Return to “SFS2X HTML5 / JavaScript API”

Who is online

Users browsing this forum: No registered users and 2 guests