MXMLC throws error for JSON object, Flash Builder OK


i have code in project compiled fine in flash builder 4.5 (using 4.1 sdk).  trying build command-line build using sublime text 2, , fails on code:

 

 

                                        var objsend:object = new object();                                         var datastring:string = json.encode(packageddata);                                         datastring = escape(datastring);                                         objsend.jsonsenddata = datastring;  

 

it gives error on second line:

 

error: access of undefined property json.

 

why?  there need include? 

which json library using?  if 1 built flash, make sure have right playerglobal.swc , –swf-version settings.

 

alex harui

apache flex team

http://blogs.adobe.com/aharui



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached