Oh cool. Thanks!
However, that didn't work... I realized that the addChild I wanted to reference was not the correct component to work with. The addState within that component opens up the dialog box. Here's the code: <?xml version="1.0" encoding="utf-8"?> <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" label="AddContact" > <mx:TitleWindow y="0" width="400" height="300" title="Add a new Contact Source" showCloseButton="true" fontSize="12" layout="absolute" > <mx:TextArea wordWrap="true" editable="false" width="348" height="71" fontWeight="bold" fontSize="12" > <mx:text><![CDATA[Enter the name and email address.]]></mx:text> </mx:TextArea> <mx:Label x="34" y="110" text="Name" width="59" fontSize="12"/> <mx:TextInput x="120" y="108" id="txtName" fontSize="12" width="228" /> <mx:Label x="34" y="168" text="Address" fontSize="12"/> <mx:TextInput x="120" y="166" id="txtAddress" fontSize="12" width="228"/> <mx:Button x="120" y="209" label="Add"/> </mx:TitleWindow> </mx:Canvas> How do I open this into the parent of the parent canvas? I can't see any place where the objects could use target="". Thanks! ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jitendra jain Sent: Friday, October 10, 2008 11:39 PM To: flexcoders@yahoogroups.com Subject: {Disarmed} Re: [flexcoders] Components and displaying into a new target Application.application will do the trick.. Thanks, with Regards, Jitendra Jain ----- Original Message ---- From: Scott <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, 11 October, 2008 10:25:53 AM Subject: [flexcoders] Components and displaying into a new target I've got an issue that I can't figure a way around. My main.mxml has a canvas for the main display. Within that canvas I have many different components. One of which is an accordion control that contains several different components. One of those components I have is a text window with a couple of buttons. When I click a button within that accordion control I want it to open a new window on the main.mxml canvas. Can I do that without using a custom event? I tried to figure out if I could use the target="" on the addChild line but I can't figure out how to reference the canvas in the main.mxml. TIA. Scott ________________________________ Unlimited freedom, unlimited storage. Get it now <http://in.rd.yahoo.com/tagline_mail_2/*http:/help.yahoo..com/l/in/yahoo /mail/yahoomail/tools/tools-08.html/> -- This message has been scanned for viruses and dangerous content by MailScanner <http://www.mailscanner.info/> , and is believed to be clean.