views:

25

answers:

1
function send(input):void{
   // input.text = "{key: 'value'}"
   var x:* = stringToObject(input.text)

   // then be able to do this
   var y:* = x.key;

   // then y must be equal to 'value'
   trace(y) // this is just a string
}
+2  A: 

You'll need to include the JSON library to be able to parse JSON strings into objects.

Reference the as3corelib library for more info.

mway
Thanks! I've done it, so stupid xD
Totty