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 42A0F10F43 for ; Thu, 26 Sep 2013 19:14:21 +0000 (UTC) Received: (qmail 41821 invoked by uid 500); 26 Sep 2013 19:14:19 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 41787 invoked by uid 500); 26 Sep 2013 19:14: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 41766 invoked by uid 99); 26 Sep 2013 19:14:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 19:14:16 +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 mark.kessler.ctr@usmc.mil designates 138.162.128.22 as permitted sender) Received: from [138.162.128.22] (HELO usmcquanio01.nmci.usmc.mil) (138.162.128.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Sep 2013 19:14:07 +0000 Received: from gate22-quantico.nmci.usmc.mil (HELO mcusquaneg01v.mcdsus.mcds.usmc.mil) ([138.162.128.52]) by usmcquanio01.nmci.usmc.mil with ESMTP; 26 Sep 2013 15:08:58 -0400 Received: from mcusquanez26v.mcdsus.mcds.usmc.mil ([138.156.149.182]) by mcusquaneg01v.mcdsus.mcds.usmc.mil with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 Sep 2013 15:13:29 -0400 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Send parameter to mxml constructor Date: Thu, 26 Sep 2013 15:13:20 -0400 Message-ID: <0E7CF6486AC44249B0B674C6760449B407441873@mcusquanez26v.mcdsus.mcds.usmc.mil> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Send parameter to mxml constructor Thread-Index: Ac666lcw0/l8cpz1RoKHmmZi7ZdL3gAAe5VQ References: From: "Kessler CTR Mark J" To: X-OriginalArrivalTime: 26 Sep 2013 19:13:30.0400 (UTC) FILETIME=[7C7DF200:01CEBAEC] X-Virus-Checked: Checked by ClamAV on apache.org Setter Dependency Injection(mxml compatible) vs constructor Dependency = Injection (AS compatible). -Mark -----Original Message----- From: mark goldin [mailto:markzolotoy@gmail.com]=20 Sent: Thursday, September 26, 2013 2:57 PM To: users Subject: Send parameter to mxml constructor I have an mxml class called Obj1. Somewhere in my code I do: var _obj1 =3D new Obj1(); What I need is to provide some variable to Obj1 for its initialization. = A reason for that is because Obj1 has children that need that variable for their initialization. But because I cannot send a parameter to Obj1's constructor I dont know = how to solve my problem. Any idea? Thanks