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
}
views:
25answers:
1
+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
2010-10-07 22:02:07
Thanks! I've done it, so stupid xD
Totty
2010-10-07 23:28:26