Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 486761947B for ; Sat, 23 Apr 2016 12:59:50 +0000 (UTC) Received: (qmail 55101 invoked by uid 500); 23 Apr 2016 12:59:50 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 55070 invoked by uid 500); 23 Apr 2016 12:59:50 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 55059 invoked by uid 99); 23 Apr 2016 12:59:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Apr 2016 12:59:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5572A180579 for ; Sat, 23 Apr 2016 12:59:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6uz6aNZjE5wz for ; Sat, 23 Apr 2016 12:59:47 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 569E45F39D for ; Sat, 23 Apr 2016 12:59:47 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id EBC8124560DDB for ; Sat, 23 Apr 2016 05:59:45 -0700 (PDT) Date: Sat, 23 Apr 2016 05:26:37 -0700 (PDT) From: Nemi To: users@flex.apache.org Message-ID: <1461414397812-12587.post@n4.nabble.com> In-Reply-To: <1460744473429-12471.post@n4.nabble.com> References: <1460744473429-12471.post@n4.nabble.com> Subject: Re: Build Flex Mobile Apps with different Assets MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.