[flexcoders] creationcomplete firing when a component is disabled
I've got a troubling issue... On my main page I have a tabNavigator that has several different pages for my app. This navigator is disabled until the user logs in. However, even though the navigator is disabled; it still fires off the creationcomplete which is giving me grief because the data connection hasn't been built yet. Falling short of creating a custom event, is there a way to fire off the init() function when the component is enabled instead of when it's creationComplete? Thanks Scott
RE: [flexcoders] creationComplete?
Are you hiding the screens? I so, use visible and the show event. Otherwise, maybe try focusIn events on the containers. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Monday, February 11, 2008 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] creationComplete? I have two screens in Flex,for instance screen1 screen2 the creationComplete in screen2 triggered when the screen move from screen1 to screen2 first time. then I go back from screen2 to screen1 with other code. but the creationComplete in screen2 doesn't triggered when the screen move from screen1 to screen2 seconed time. why? I need a function and run the page load .which event I can use? Thanks Mark
[flexcoders] creationComplete?
I have two screens in Flex,for instance screen1 screen2 the creationComplete in screen2 triggered when the screen move from screen1 to screen2 first time. then I go back from screen2 to screen1 with other code. but the creationComplete in screen2 doesn't triggered when the screen move from screen1 to screen2 seconed time. why? I need a function and run the page load .which event I can use? Thanks Mark
[flexcoders] creationComplete question?
Hi I have some screens under ViewStack like this mx:ViewStack view:Form1View / view:Form2View / view:Form3View / view:ThankyouView / /mx:ViewStack I have set creationComplete event to call a function for Form2View, but the event is actived when I call the app first time(it show Form1View at first). I hope the creationComplete event work when I reach Form2View, Please help me to know how to control this. Thanks Mark
Re: [flexcoders] creationComplete Not Firing
On Friday 30 Nov 2007, urmacboy wrote: We're experiencing an interesting problem where the function in the creationComplete attribute in the Application tag fails to run. You've verified this how ? By setting a breakpoint on the first line in the debugger ? -- Tom Chiverton Helping to adaptively facilitate second-generation information on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] creationComplete Not Firing
We're experiencing an interesting problem where the function in the creationComplete attribute in the Application tag fails to run. Has anyone else experienced problems with this attribute. The code for our Application tag is as follows: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=assets.* backgroundImage=../assets/images/bark.png width=1024 height=768 backgroundGradientAlphas=[0.0, 0.0] creationComplete=initApp() Thanks for any advice. Scott
RE: [flexcoders] creationComplete Not Firing
Does the UI show up or does nothing show up. If nothing, then there's something continously causing invalidations From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of urmacboy Sent: Friday, November 30, 2007 8:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] creationComplete Not Firing We're experiencing an interesting problem where the function in the creationComplete attribute in the Application tag fails to run. Has anyone else experienced problems with this attribute. The code for our Application tag is as follows: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute xmlns:ns1=assets.* backgroundImage=../assets/images/bark.png width=1024 height=768 backgroundGradientAlphas=[0.0, 0.0] creationComplete=initApp() Thanks for any advice. Scott
[flexcoders] CreationComplete seems to be a little SLOW
On a state change I have the following snippet: mx:State name=oneItem enterState=displayLastOrder() mx:AddChild comp:OneItemOptions id=myOptions / /mx:AddChild /mx:State in the displayLastOrder() function I have a trace Statement trace('I am in the enterstate function'); in the OneItemOptions I am calling an init function on creationComplete. In that function I have another trace statement. Here is my question, The trace in the displayLastOrder fires BEFORE the one in the init function. I was under the impression that the enterState is not executed until the state is complete (and therefore the child has been instantiated and complete). I am obviously wrong. Bruce
Re: [flexcoders] CreationComplete help....
On Tuesday 16 January 2007 17:39, jensen.axel wrote: then i pick a different item from a mx:Tree, and reload the component, to edit the new data i've selected from my tree... and the setup() function never runs, because the component has already been created, so i'm wondering how i can get this function to run every time? Make it public and call it explictly after picking the new item. -- Tom Chiverton Helping to professionally promote attention-grabbing m-commerce This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] CreationComplete help....
Hello, I have a custom Component (it is an edit/create form) that i'm initializing... when i go and initialize the component, it runs a function on creationComplete=setup() then i save some data, and change viewStates... then i pick a different item from a mx:Tree, and reload the component, to edit the new data i've selected from my tree... and the setup() function never runs, because the component has already been created, so i'm wondering how i can get this function to run every time? Axel
RE: [flexcoders] CreationComplete help....
Could you just dispatch another event that calls the setup function? The dispatcher could be your component or the component that changes the data...? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jensen.axel Sent: Tuesday, January 16, 2007 12:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CreationComplete help Hello, I have a custom Component (it is an edit/create form) that i'm initializing... when i go and initialize the component, it runs a function on creationComplete=setup() then i save some data, and change viewStates... then i pick a different item from a mx:Tree, and reload the component, to edit the new data i've selected from my tree... and the setup() function never runs, because the component has already been created, so i'm wondering how i can get this function to run every time? Axel
[flexcoders] CreationComplete?
Hi, I am trying to populate this data grid upon page load. If the page I am working has the mx:application tag, then I can use creationComplete(), but what can I do if I am working on a page which does not contain the mx:application I can load the data grid if I write a function, but I want it to execute automatically. -Malik -- 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] CreationComplete?
Every component has a creationComplete event, you could still use that. If its a container thats in a view stack maybe you want to use the show event instead? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson Sent: Tuesday, August 15, 2006 8:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CreationComplete? Hi, I am trying to populate this data grid upon page load. If the page I am working has the mx:application tag, then I can use creationComplete(), but what can I do if I am working on a page which does not contain the mx:application I can load the data grid if I write a function, but I want it to execute automatically. -Malik __._,_.___ -- 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] creationComplete on custom non UI component
Is there a best practice for making something similar to a creationComplete method on a non UI component that extends EventDispatcher? I am not sure this is what I need, but let me explain my situation: !-- In the MXML -- MyComponent someValue=10 The problem is that I can't get to the someValue (10 in this case) i have set in the MXML before the component has been instantiated or something. So my question is really: How do I know when I have access to the someValue=10 set in MXML, within the AS component? Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/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/
Re: [flexcoders] creationComplete on ViewStack children *bug?*
On 8/26/05, Scott Barnes [EMAIL PROTECTED] wrote: I've got a typical setup where i set certain properties of controls within a child of a view stack. Inside the child i have the usual creationComplete=hlper.myfunc() Only the myFunc doesn't even know its children within, meaning if i did view.myButton.enable = false; the view.myButton would return undefined. Yet if i put creationPolicy=all on the actual viewstack itself, the above code example would return a valid button for view.myButton That's because the children aren't yet created at the time the creationComplete event. So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals Yes, exactly. To me, the creationComplete event *should* fire once all of its children objects are actually created, meaning your entire container has come back completed, now carry out tasks creationComplete means the container itself is created, not its children. ;) (Yeah I know tihs isn't obvious.) You should listen to the childrenCreated event if you want to work on the children. Manish Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/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] creationComplete on ViewStack children *bug?*
I've got a typical setup where i set certain properties of controls within a child of a view stack. Inside the child i have the usual creationComplete=hlper.myfunc() Only the myFunc doesn't even know its children within, meaning if i did view.myButton.enable = false; the view.myButton would return undefined. Yet if i put creationPolicy=all on the actual viewstack itself, the above code example would return a valid button for view.myButton So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals To me, the creationComplete event *should* fire once all of its children objects are actually created, meaning your entire container has come back completed, now carry out tasks I also tried putting creationPolicy=all on the child container itself, but still nothing. It has to be done via the ViewStack in order for me to manipulate controls within a child? -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h9e3sfs/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125020712/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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] creationComplete on ViewStack children *bug?*
Title: RE: [flexcoders] creationComplete on ViewStack children *bug?* Scott- So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals Right, following is from docs: A creationPolicy of auto means that the container is to delay creating some or all descendants until they are needed, a process which is known as deferred instantiation. This policy produces the best startup time because fewer UIObjects are created initially. However, this introduces navigation delays when a user navigates to other parts of the application for the first time. Navigator containers such as Accordion, TabNavigator, and ViewStack implement the auto policy by creating all their children immediately, but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container. That means, to me, it is there by design. You can call myFunc from creationComplete of each children or show/hide event of ViewStack. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes Sent: Friday, August 26, 2005 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] creationComplete on ViewStack children *bug?* I've got a typical setup where i set certain properties of controls within a child of a view stack. Inside the child i have the usual creationComplete=hlper.myfunc() Only the myFunc doesn't even know its children within, meaning if i did view.myButton.enable = false; the view.myButton would return undefined. Yet if i put creationPolicy=all on the actual viewstack itself, the above code example would return a valid button for view.myButton So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals To me, the creationComplete event *should* fire once all of its children objects are actually created, meaning your entire container has come back completed, now carry out tasks I also tried putting creationPolicy=all on the child container itself, but still nothing. It has to be done via the ViewStack in order for me to manipulate controls within a child? -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Sponsor ~-- font face=arial size=-1a href="" href="http://us.ard.yahoo.com/SIG=12h9e3sfs/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125020712/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org">http://us.ard.yahoo.com/SIG=12h9e3sfs/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125020712/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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 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] creationComplete on ViewStack children *bug?*
Aye, i RTFM ;) heheh .. but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container... See that part is what threw me, it sounded is if you left the creationPolicy soley up to the ViewStack, then yes it proceeds according to design. Yet, if you put in creationPolicy=all on the *actual* child02, its ignored in favour of what the actual viewstack's policy states... in that you can't over-ride it for children within the viewstack? As to what then purpose you would have creationComplete= on a child of a viewstack is beyond me? Smells fishy to me ;) hehe On 8/26/05, Abdul Qabiz [EMAIL PROTECTED] wrote: Scott- So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals Right, following is from docs: A creationPolicy of auto means that the container is to delay creating some or all descendants until they are needed, a process which is known as deferred instantiation. This policy produces the best startup time because fewer UIObjects are created initially. However, this introduces navigation delays when a user navigates to other parts of the application for the first time. Navigator containers such as Accordion, TabNavigator, and ViewStack implement the auto policy by creating all their children immediately, but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container. That means, to me, it is there by design. You can call myFunc from creationComplete of each children or show/hide event of ViewStack. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes Sent: Friday, August 26, 2005 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] creationComplete on ViewStack children *bug?* I've got a typical setup where i set certain properties of controls within a child of a view stack. Inside the child i have the usual creationComplete=hlper.myfunc() Only the myFunc doesn't even know its children within, meaning if i did view.myButton.enable = false; the view.myButton would return undefined. Yet if i put creationPolicy=all on the actual viewstack itself, the above code example would return a valid button for view.myButton So in saying this, does this mean that ViewStack creates the base containers for all of its children, but all sub-containers there within, aren't created until that child recieves index selection, meaning if child 2 is clicked, now create its actual internals To me, the creationComplete event *should* fire once all of its children objects are actually created, meaning your entire container has come back completed, now carry out tasks I also tried putting creationPolicy=all on the child container itself, but still nothing. It has to be done via the ViewStack in order for me to manipulate controls within a child? -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Sponsor ~-- font face=arial size=-1a href=http://us.ard.yahoo.com/SIG=12h9e3sfs/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125020712/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life - brought to you by One Economy/a./font ~- -- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http