[flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mark Ingram
Hi, does anyone know if it's possible to create a reference in MXML (so that you can later use it as a variable and also easily use bindings) but not add it to the parent's children? i.e. mx:Canvas mx:Script Private function someEvent() {

Re: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Scott - FastLane
Mark - You should be able to do something like the following in your mxml file: (you could also construct the titleWindow in a creationComplete() handler after simply decarling it as a member var.) mx:Script ![CDATA[ private var titleWindow:TitleWindow = new TitleWindow(...);

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Thursday, October 25, 2007 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Add reference in MXML without adding to children Hi, does anyone know if it's possible to create a reference in MXML (so that you can

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mark Ingram
October 2007 12:38 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in MXML without adding to children Does it have to be MXML? mx:Script ![CDATA[ import mx.managers.PopUpManager

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
Krotscheck Sent: 25 October 2007 12:38 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in MXML without adding to children Does it have to be MXML? mx:Script ![CDATA[ import mx.managers.PopUpManager

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mike Krotscheck
Of Mike Krotscheck Sent: Thursday, October 25, 2007 8:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in MXML without adding to children You can either: override protected function childrenCreated():void { super.childrenCreated

Re: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Johannes Nel
] *On Behalf Of *Mike Krotscheck *Sent:* 25 October 2007 12:38 *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Add reference in MXML without adding to children Does it have to be MXML? mx:Script ![CDATA[ import

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Samuel R. Neff
25, 2007 5:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Add reference in MXML without adding to children Hi, does anyone know if it's possible to create a reference in MXML (so that you can later use it as a variable and also easily use bindings) but not add it to the parent's

RE: [flexcoders] Add reference in MXML without adding to children

2007-10-25 Thread Mark Ingram
Great idea - thanks :-) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Samuel R. Neff Sent: 25 October 2007 14:13 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add reference in MXML without adding to children Wrap