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 D282018625 for ; Tue, 19 Apr 2016 12:55:19 +0000 (UTC) Received: (qmail 97111 invoked by uid 500); 19 Apr 2016 12:55:19 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 97085 invoked by uid 500); 19 Apr 2016 12:55:19 -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 97073 invoked by uid 99); 19 Apr 2016 12:55:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2016 12:55:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DB3ADC12C8 for ; Tue, 19 Apr 2016 12:55:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.492 X-Spam-Level: ** X-Spam-Status: No, score=2.492 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NQQ52ovQOPbN for ; Tue, 19 Apr 2016 12:55:16 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 492F45FACD for ; Tue, 19 Apr 2016 12:55:16 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id j11so17661586lfb.1 for ; Tue, 19 Apr 2016 05:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=gR/BAiRYwrmzU4dUFruWBAIt35jwRUa+4VUYMJPhFs0=; b=cUo+yCREUKd3vlzIv0b8noAOUnzJKZm27ECFCBsWpsHmvPRrhHO8SlEMAnvU6FHTcI HRc710/pLbRnICWvgs7Bfk6JbCwLhuukG8vLrw5d97VCNDslRO09Cm8ZUBfRoCVo6Git kLGqfhNFFpEjNb1Q3Yozsv3643xyPraJeHVCPK+iwgOKahJEsGGIZvSlUisYw9jzNH/Q vLvr/88L/P1yQQMYt01DsTGNfcgoB81AEKUGOLQZ2kZiTPG9R8x+51td4a0NA8a1ylHw 6eTAUs58M9O7gpcuJBhh+gtw/Q1Yg+heU1nHfkostx81VEju1yUuY232MhPY3UsHPnkg 4f+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=gR/BAiRYwrmzU4dUFruWBAIt35jwRUa+4VUYMJPhFs0=; b=gYfB9DFe8mEoP8VeUZHmm7FB2Nq8WqKyFojRuH3TZ4MXS5JW+uNJTNTKaYNNKMmsGP 8cG42bmkL3UwaWw6hJmzMxL+xYwzS5etoaOAOZbA5nYA1T2XapZ+j9kRQ6lgPic+oZ9l 3ixUmy+kdlYDoleu3yFB0BaqyfjgAla4DUH9kufWu52jmQ/iQGMdN0QtKiRmPWdayRo+ xdLjQnXR7myuxZtDEet6M2EiMBRGqJY+CfYb+JVIF/5JLSwYP/xTQjUUgoG3U1jnMxnG 7kqAxfwSnk2H8WMeiVLbIauADbQd15UEl3AmMneKO35/vVYpLeY+VPtVmSnO0jqMJSNc xw/Q== X-Gm-Message-State: AOPr4FVIG0PamYmDLgbN5oqcSanPri9sgJuy5XKEm1acfoZeqJ4gdb2VnhbVgceVNi9WNGsbA096wu3sgmUlMw== MIME-Version: 1.0 X-Received: by 10.25.154.5 with SMTP id c5mr1386788lfe.85.1461070510455; Tue, 19 Apr 2016 05:55:10 -0700 (PDT) Received: by 10.25.166.78 with HTTP; Tue, 19 Apr 2016 05:55:10 -0700 (PDT) In-Reply-To: <1461063071778-12527.post@n4.nabble.com> References: <1460744473429-12471.post@n4.nabble.com> <1460908143949-12494.post@n4.nabble.com> <1461063071778-12527.post@n4.nabble.com> Date: Tue, 19 Apr 2016 15:55:10 +0300 Message-ID: Subject: Re: Build Flex Mobile Apps with different Assets From: Evyatar Ben Halevi-Arbib To: "users@flex apache. org" Content-Type: multipart/alternative; boundary=001a1140346cc484d30530d5fcb2 --001a1140346cc484d30530d5fcb2 Content-Type: text/plain; charset=UTF-8 This solution is consisted of two parts (in this example I divide to "web" and "tablet" applications) 1. Have in the compiler settings "Additional compiler arguments" as follows (for "web" application) - -define=CONFIG::tablet,false -define=CONFIG::web,true (This is defined locally in Flash Builder, but can be defined also via Ant build etc.) 2. In the code itself wrap relevant code sections with compilation flags as follows - CONFIG::web { private const initState:String = "webValue"; } CONFIG::tablet { private const initState:String = "tabletValue"; } In the above example you would have a const definition with different value for web and tablet applications. Good luck, Evyatar On Tue, Apr 19, 2016 at 1:51 PM, chris_d_k wrote: > Hello Evyatar, Hello GhaziTriki, > > do you have an example how you realized it? > > > > > > -- > View this message in context: > http://apache-flex-users.2333346.n4.nabble.com/Build-Flex-Mobile-Apps-with-different-Assets-tp12471p12527.html > Sent from the Apache Flex Users mailing list archive at Nabble.com. > --001a1140346cc484d30530d5fcb2--