It looks like I could detect if it's html or flash by using preprocessor commands but I couldn't find anything for detecting which OS the user is currently on. Is there anything like that available?
#if js
var userAgent = js.Browser.window.navigator.userAgent;#end
#if flashvar userAgent = cast(System.external.call("function(){return navigator.userAgent;}"), String);#end
var mobile = false;var matches = ["Mini", "Mobile", "Android", "ARM", "Phone", "Tablet", "BlackBerry", "Palm", "webOS"];
for (match in matches){ if (userAgent.indexOf(match) > -1) { mobile = true; break; }}