I thought you want to add dynamically to the Accordion control.
and it can be done like this application.accordionName.
Anyways Great...
 Thanks,

with Regards,
Jitendra Jain




----- Original Message ----
From: Scott <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, 11 October, 2008 11:18:50 AM
Subject: RE: {Disarmed} Re: [flexcoders] Components and displaying into a new 
target


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:Canvasxmlns:mx="http://www.adobe. com/2006/ mxml" width="400" height="300" 
label="AddContact"  >
<mx:TitleWindowy="0" width="400" height="300" title="Add a new Contact Source" 
showCloseButton="true" fontSize="12" layout="absolute" >
 
 
            <mx:TextAreawordWrap="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:Labelx="34" y="110" text="Name" width="59" fontSize="12"/>
            <mx:TextInputx="120" y="108" id="txtName" fontSize="12" width="228" 
/>
            <mx:Labelx="34" y="168" text="Address" fontSize="12"/>
            <mx:TextInputx="120" y="166" id="txtAddress" fontSize="12" 
width="228"/>
            <mx:Buttonx="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:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of jitendra jain
Sent: Friday, October 10, 2008 11:39 PM
To: [EMAIL PROTECTED] ups.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] us>
To: [EMAIL PROTECTED] ups.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
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean.  


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Reply via email to