flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nemi <nemino...@gmail.com>
Subject Re: Build Flex Mobile Apps with different Assets
Date Sat, 23 Apr 2016 12:26:37 GMT
Use ANT script per app you want to build.

Organize that "additional" (in your case only assets) source files paths
like:
app1/src/MyAssets.as
app2/src/MyAssets.as
app3/src/MyAssets.as
...
and move them outside main src source files path.

In ANT build scripts include proper assets source files.

If you use same name asset constants in each app, but they look different,
this solution is enough, and it will be strong typed, as each app will look
for same named assets in MyAssets.as, and you use them like:
myBitmapImage.source = MyAssets.BLUE_CIRCLE_CLASS

But if there are different number or names of assets in MyAssets, then you
can create 
funtion getAssetByName(assetName:String) 
to load asset in app.

For better organization (and development speed) try to have each MyAssets in
different SWC. If you manage to do that, then include SWC as library and not
source paths in your build scripts.



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Build-Flex-Mobile-Apps-with-different-Assets-tp12471p12587.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Mime
View raw message