Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B43D9E5F for ; Wed, 14 Mar 2012 18:14:12 +0000 (UTC) Received: (qmail 11871 invoked by uid 500); 14 Mar 2012 18:14:11 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 11838 invoked by uid 500); 14 Mar 2012 18:14:11 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 11830 invoked by uid 99); 14 Mar 2012 18:14:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 18:14:11 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gosmith@adobe.com designates 64.18.1.187 as permitted sender) Received: from [64.18.1.187] (HELO exprod6og104.obsmtp.com) (64.18.1.187) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 18:14:01 +0000 Received: from outbound-smtp-1.corp.adobe.com ([192.150.11.134]) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKT2Df1N5TRf82djeDLNSXff6uvLQAVFPs@postini.com; Wed, 14 Mar 2012 11:13:41 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4.adobe.com [193.104.215.14]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id q2EIBbJ0027453 for ; Wed, 14 Mar 2012 11:11:38 -0700 (PDT) Received: from nacas02.corp.adobe.com (nacas02.corp.adobe.com [10.8.189.100]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id q2EIDbPl007772 for ; Wed, 14 Mar 2012 11:13:38 -0700 (PDT) Received: from nambx05.corp.adobe.com ([10.8.189.124]) by nacas02.corp.adobe.com ([10.8.189.100]) with mapi; Wed, 14 Mar 2012 11:13:37 -0700 From: Gordon Smith To: "flex-dev@incubator.apache.org" Date: Wed, 14 Mar 2012 11:13:36 -0700 Subject: RE: Flex and names spaces in MXML Thread-Topic: Flex and names spaces in MXML Thread-Index: Ac0BtkVIfWGvCMoQTaGRaARDv3MDwQAV8Jig Message-ID: <149F8129B58B2D418508E63117D9C5419B0DCEFC66@nambx05.corp.adobe.com> References: <626D0E83-A183-40B8-87EC-EAF667CA8E54@classsoftware.com> In-Reply-To: <626D0E83-A183-40B8-87EC-EAF667CA8E54@classsoftware.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Omitting the xmlns attributes in MXML would make MXML not be valid XML. - Gordon Smith, Adobe -----Original Message----- From: Justin Mclean [mailto:justin@classsoftware.com]=20 Sent: Wednesday, March 14, 2012 12:44 AM To: flex-dev@incubator.apache.org Subject: Flex and names spaces in MXML Hi, I think that you can define public namespaces in actionscript like so: public namespace fx =3D "http://ns.adobe.com/mxml/2009"; public namespace s= =3D "library://ns.adobe.com/flex/spark"; public namespace mx =3D "library://ns.adobe.com/flex/mx"; Is there any way we can define the common namespaces somewhere (in UICompon= ent??) so we don't have to define them all the time in MXML? This may becom= e more of an issue as we add a few more name spaces. Ideally it would be nice (I think) to just do this: Instead of: Perhaps we have the MXML compiler automatically create these namespaces if = they are not defined? (Once it gets donated of course.) Thanks, Justin