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()
{
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(...);
@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
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
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
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
] *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
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
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
9 matches
Mail list logo