hyperfiction/HypSystem — pull request #17 by fbricker (2014-08-24 15:47:01+00:00)
Title: Allow the project to compile to all targets

Hi, I've noticed that if you're compiling for Mac, Windows, Linux, HTML5 (or targets different than Android, iOS and flash), you cannot compile Md5 and SharedObject are not imported.

Also, on those targets, you get 'unknown' when you call getLanguageCode. I think it'll be nice to let that function rely on Capabilities.language for every other platform.

I know that this can be fixed by creating a small function like this:

function myGetLangCode(){
var lang:String=Device.getLanguageCode();
if(lang!='unknow') return lang;
return flash.system.Capabilities.language;
}

But it'll be nice not having to do that :)

By the way... thanks for this extension... (It rocks!)

Federico