If you are developing your own application for it, you should have no problem sharing 99% of the code base between Flex and AIR assemblies.
You will need a separate MXML application for Flex / AIR versions, as AIR uses WindowedApplicationand Flex usesApplication
API- AIR-only. , , AIR-only (
) . , , Swift Suspenders.
, . , AIR Flex , . , , com.application.MyService, AIR Flex, com.application.MyService , " " .
, -define+=CONFIG::AIR. , , AIR.
:
public function getMyService() : IMyService
{
CONIFG::AIR
{
return new MyServiceThatUsesAnAIROnlyAPI();
}
return new FallbackServiceForFlex();
}
, "" (.. !CONFIG::AIR), , (CONFIG::AIR CONFIG::FLEX)