Bug with Date Objects in the haxe unserialize when used as a SWC in a Flex Project

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bug with Date Objects in the haxe unserialize when used as a SWC in a Flex Project

jamesbjackson
Hello Everyone,

I found a bug with the haxe unserialize when used as a SWC in a Flex project. fromString is not a native function of flash so when you compile a haxe swf this is fine as it added in automatically but when you export a library as a SWC and then use the unserialize class and it contains a date the following error appear's any way for me to include the fromString function into my compiled SWC and are there any other method i need to be aware of, so it works without raising an exception?

TypeError: Error #1006: fromString is not a function.
        at haxe::Unserializer/unserialize()
        at haxe::Unserializer/unserializeObject()
        at haxe::Unserializer/unserialize()
        at haxe::Unserializer/unserializeObject()
        at haxe::Unserializer/unserialize()
        at haxe::Unserializer/unserialize()
        at haxe::Unserializer/unserializeObject()
        at haxe::Unserializer/unserialize()
        at haxe::Unserializer$/run()

I am hoping there is a simple solution :-)

James
--
haXe - an open source web programming language
http://haxe.org