Hi,

This works - but is it really worth it?

        public function toJSON(s:String):*
        {
                var array:Array = toArray();
                
                if (ApplicationDomain.currentDomain.hasDefinition("JSON"))
                {
                        var json:Class = 
Class(ApplicationDomain.currentDomain.getDefinition("JSON"));
                        return json["stringify"](array);
                }
                else
                {
                        return '{"error": "Not supported on Flash Player 10"}';
                }
        }

Thanks,
Justin

Reply via email to