Sometime toString() call fails, I use something alike :
var str = null;
try{ str = defval.toString();} catch(d:Dynamic){};
if( str==null){
try { str = Std.string( defval ); } catch (d:Dynamic) { };
}
if( str!=null)
defval = new Serialized(str).escape();
else {
defval="#unknown";
}
But I don't really get the whole picture so it might induce problems... so maybe you can do an improvement here :)
thx
Sometime toString() call fails, I use something alike :
But I don't really get the whole picture so it might induce problems... so maybe you can do an improvement here :)
thx