Im trying out sephiroth’s AS3 Serializer but it throws errors like this that is found on his class
‘1004: Namespace was not found or is not a compile-time constant.’
i know what the error means. What i don’t know is how to fix it. Anyone has any ideas about sepy’s Serializer class in AS3 and how to make it work?
here’s the code i’m trying to test (base on his example) but it throws error:
stop();
import flash.net.*;
import org.sepy.io.Serializer;
var fromString:String = 'a:5:{i:2;a:4:{i:0;i:1;i:1;i:2;i:2;i:3;i:3;i:3;}s:1:"k";d:23.440000000000001278976924368180334568023681640625;s:1:"i";i:-11;s:1:"o";b:1;s:5:"class";O:3:"foo":2:{s:3:"boo";s:5:"index";s:3:"foo";i:1;}}';
var result:* = Serializer.unserialize(fromString);
trace(fromString);
trace("----------");
trace(result);
EDIT: Apparently, the mx_internal is not working. How do i make this one work? Im using Flash CS4 by the way.