It’s probably because of the way they are instantiated. dispatchEvent() is a mix-in from UIEventDispatcher.

 

You might try adding ChangeEvent to the component once it is created. Just a thought.

 

Hey, I’m at 11 Madison Ave.

 

Regards,

Rob Rusher

 

RIA Consultant

Macromedia Certified Flex Instructor

e:[EMAIL PROTECTED] c:303.885.7044 im:robrusher


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robert Brueckmann
Sent: Tuesday, August 02, 2005 4:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] databinding question

 

Quick question...why are these different:

 

<merlin:ReportingDatesPanel width="100%" height="100%" portfolio="{selectedPortfolio}" />

 

Versus:

 

mainContent.createChild(ReportingDatesPanel, "", {width: "100%", height: "100%", portfolio: selectedPortfolio});

 

When the selectedPortfolio object changes in the main app with the MXML in first example above, the custom component recognizes the change in the selectedPortfolio object and performs the correct action.

 

If I have the main application dynamically create the custom component with the code in the 2nd example above, if the selectedPortfolio object changes, the dynamically created custom component does not see that change and none of the actions that I want to take place, actually take place.  I’m guessing this is a databinding issue…am I supposed to set the portfolio attribute differently to catch changes in this object when dynamically creating the custom component?

 

Any help is greatly appreciated.

 

Thanks,

Rob

 

robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york, ny 10022

p: 212.822.4821

f: 212.822.4820

 


This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.

 

Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to