I have a libary which i use for a mobile (android) and desktop-air projekt. I want to code somthing like this (pseudoCode):
if( operating system == mobile/android )
else if(operating system == desktop )
Is it possible to archive this?
You could investigate flash.system.Capabilities.os I think - but it is discouraged to use is for feature-depending support (it lists iOS but does not list Android OS for example in docs). Instead Adobe advise to perform runtime checks for feature specific support.
You could try Capabilities.version. I've used that to distinguish between IOS and Android and you can probably get Windows or Mac from that also.