[flexcoders] Destroying/Re-creating Objects
Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Destroying/Re-creating Objects
I believe that is the issue...after sending the email I realized that I am not waiting for the creationComplete event to be dispatched on each child before attempting to use the child. Thanks for the response. Rob From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Tuesday, January 17, 2006 10:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Destroying/Re-creating Objects
I verified that the component I am creating does have the creationComplete event defined but it is not firingshould I be listening for the childCreated event on the view stack instead? Thanks again for the info and assist From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Gordon Smith Sent: Tuesday, January 17, 2006 10:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Destroying/Re-creating Objects The layout and some of the initialization has not been completed Completed by when? The LayoutManager runs asynchronously. When createChild() returns, the new child won't exist, but its commitProperties(), measure(), and updateDisplayList() methods won't have been called yet. By the time the new child dispatches its creationComplete event, they should all have been called. Other than this timing issue, how is createChild() failing? - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rob Dickey Sent: Tuesday, January 17, 2006 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Destroying/Re-creating Objects Sanity Check needed :) I have a scenario where I need to destroy and recreate all child objects of a view stack. I'm first using the viewStack.destroyAllChildren() (or viewStack.destroyChildAt(index)) which destroy the child objects as expected, but when I attempt to re-create using the viewStack.createChild() I run into some unexpected results. It appears from debugging, etc. that the new child objects appear ok structurally but the layout and some of the initialization has not been completed. The creation policy of the view stack and child objects are not explicitly stated so the default is being used. So am I doing this correctly? Is there another / better way to destroy/recreate child objects dynamically? Thanks for any info. Regards, Rob -- 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 -- 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] CheckCellRenderer
Hi Tracy, JesterXL, Thanks for both replies and suggestions. Both worked great, although I think Ill stick to the last suggestion (editField) as It would take more comments then code to explain why I am reassigning the data provider to the grid that its already assigned to J Regards, Rob From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL Sent: Thursday, December 29, 2005 5:56 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] CheckCellRenderer Example: dataGrid.dataProvider[i].cbSelect = newState; becomes: dataGrid.dataProvider.editField(i, cbSelect, newState); - Original Message - From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, December 29, 2005 8:57 PM Subject: RE: [flexcoders] CheckCellRenderer This form of update: dataGrid.dataProvider[i].cbSelect = newState does not cause the dataProvider to emit the modelChanged event to update the control. Instead, use the dataProvider API, like editItemAt(). Or, probably better in your case, when you are done updating the dataProvider, re-assign it to the control: Datagrid.DataProvider = DataGrid.dataProvider; This should cause the proper events to fire and update the screen. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of rb_dickey Sent: Thursday, December 29, 2005 7:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CheckCellRenderer Hi, I'm trying to do a simple loop through a datagrid to set a column that's using the CheckCellRenderer to be checked or unchecked but the following code does not work, well sort of. What happens is that if I mouseover each row, viola, the checks in the checkbox appear or disappear depending on my choice to select all or not. Here is the function I call to set the checkboxes in the grid: private function selectAll(newState:Boolean):Void { for( var i in dataGrid.dataProvider ) dataGrid.dataProvider[i].cbSelect = newState; } The datagrid column is defined as: mx:DataGridColumn headerText= width=40 columnName=cbSelect cellRenderer=CheckCellRenderer resizable=true / The dataprovider for the grid is an RO... TIA for any info. Rob -- 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 -- 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 -- 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] AJAX vs Flex whitepaper?? anyone??
Just curious if you have taken a look at http://www.osflash.org ? Don't know about whitepapers, abstracts, but its a great source for ECMA related items including javascript, actionscript, etc., and perhaps there are links from there to something that would suit your needs... HTH Rob From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: Wednesday, October 26, 2005 6:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AJAX vs Flex whitepaper?? anyone?? Don't know of one, but if you find one, please let us ( and me know offlist), thanks! And good luck. - Original Message - From: Aldo Bucchi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, October 26, 2005 9:02 PM Subject: [flexcoders] AJAX vs Flex whitepaper?? anyone?? Hi Folks, I'm looking for a business and technical level whitepaper that develops on the differences and similarities between flex and AJAX. It is for a customer that is evaluating both techs for a series of applications. I'm not asking wether this is a good or bad comparison to make, but it is a fact that they ARE doing this comparison. so I have to go along with it. and hopefully win! I would go on and do a live presentation as I usually do, but I'm in sanfrancisco and my clients are back in south america. Thanks, Aldo -- : Aldo Bucchi : mobile (56) 8 429 8300 -- 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 -- 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. Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Anyone seen this...Bueller???
Ok, so I'm happily (well, most of the time) coding away in Flex Builder.I am using Tomcat as my testing server, which has been working great for months.I have a non-trial license for both Flex and FlexBuilder.and much to my dismay I get the following message when testing my app within FlexBuilder. This error comes up during the initialization phase of the app in 8pt red font.and I'm done. This standalone application was created with the Developer edition of Macromedia Flex and has expired. Contact the author of this application for a new copy. Well, at this point I'm asking myself, self, where can I get another copy of the application that you building??? Sorry for the weak attempt at some humor, but its been a long night with deadlines approaching too soon. TIA for any info. Rob Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/