Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-09 Thread Michael Prescott
That's it exactly. Basically, we have a number of situations where we need to add pop-up details to elements in our application, so I thought I'm trying to make reusable non-visual component that orchestrates that, like this: mx:Whatever id=summary/ mx:Canvas id=myPopUp mx:Label text=All

RE: [flexcoders] Defining, but not adding to parent in MXML

2008-12-09 Thread Alex Harui
If it doesn't need to truly float, consider using states and addChild/removeChild From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Prescott Sent: Tuesday, December 09, 2008 5:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Defining, but not adding

[flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Michael Prescott
Is it possible to define a component but somehow cause it to be omitted from the enclosing component's list of children? Essentially: mx:VBox mx:Label text=This is added as a child of the vbox, as normal./ mx:Label visible=false text=This is invisible.. but is there some way to not have it

RE: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Tracy Spratt
includeInLayout=false (also visible=false, of course) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Prescott Sent: Monday, December 08, 2008 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Defining, but

Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Michael Prescott
Sweet! Nice that there's an easy answer. On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt [EMAIL PROTECTED] wrote: includeInLayout=false (also visible=false, of course) Tracy -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of

Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Josh McDonald
That's not exactly what you're after, in this case the object will be added to the list of children, it's just not positioned on parent.updateDisplayList() or counted during parent.measure(). The only way I can think of off the top of my head to do what you're after is wrap it in mx:Array. Here's

RE: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Alex Harui
Why not use tooltip or popup manager to float that thing? Then it won't be clipped and what not From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, December 08, 2008 5:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Defining, but

Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Josh McDonald
I think he's intending to use PopupManager, but wants to define it in the same file as its container? On Tue, Dec 9, 2008 at 4:30 PM, Alex Harui [EMAIL PROTECTED] wrote: Why not use tooltip or popup manager to float that thing? Then it won't be clipped and what not *From:*