[flexcoders] databinding question
Quick question...why are these different: 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 SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] databinding question
Nevermind, I just found a past post from Matt saying databinding can only be done from MXML right now and not programmatically. Sorry for the post! robert l. brueckmann senior web developer merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 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: 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. 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] databinding question
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: 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] databinding question
Hi, Databinding is a special beast in flex, and is set up in mxml->as compiling The compiler needs the metadata to figure out what events it has to listen to for each property (or perhaps just use getters setters). It then sets up a complex mechanism of watchers and stuff to make binding happen. This is the reason why it is only supported in mxml for now. If you want the same functionality on runtime you have some choices: - use the old flash binding api ( not possible I assume ) - create your own - wait for as2lib's future release. I'll be donating a quite powerful databinding framework soon (well, not that soon if work keeps me this busy ) it is flex compatible, supports chains and different types of watchers. Best, Aldo PD: Sorry for the delay Simon, I've been busy as hell at work. On 8/2/05, Rob Rusher <[EMAIL PROTECTED]> wrote: > > > > 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:[EMAIL PROTECTED] 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: > > > > 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 > > > Visit your group "flexcoders" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > > > -- : Aldo Bucchi : mobile (56) 8 429 8300 Yahoo! Groups Sponsor ~--> http://us.ard.yahoo.com/SIG=12h7uikql/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=
RE: [flexcoders] databinding question
Gotchya on both accounts! Thanks for the feedback guys! robert l. brueckmann senior web developer merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aldo Bucchi Sent: Tuesday, August 02, 2005 6:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] databinding question Hi, Databinding is a special beast in flex, and is set up in mxml->as compiling The compiler needs the metadata to figure out what events it has to listen to for each property (or perhaps just use getters setters). It then sets up a complex mechanism of watchers and stuff to make binding happen. This is the reason why it is only supported in mxml for now. If you want the same functionality on runtime you have some choices: - use the old flash binding api ( not possible I assume ) - create your own - wait for as2lib's future release. I'll be donating a quite powerful databinding framework soon (well, not that soon if work keeps me this busy ) it is flex compatible, supports chains and different types of watchers. Best, Aldo PD: Sorry for the delay Simon, I've been busy as hell at work. On 8/2/05, Rob Rusher <[EMAIL PROTECTED]> wrote: > > > > 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:[EMAIL PROTECTED] 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: > > > > 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 > > > Visit your group "flexcoders" on the web. > > To unsubscribe from