actionscript 3 - AS3 I need to convert a string from input to an AS3 object -
how can this? here's have:
function send(input):void{    // input.text = "{key: 'value'}"    var x:* = stringtoobject(input.text)     // able    var y:* = x.key;     // y must equal 'value'    trace(y) // string }      
you'll need include json library able parse json strings objects.
reference as3corelib library more info.
Comments
Post a Comment