RE: [flexcoders] Question for creationComplete event?
Normally, you set visible=false to hide a screen, so the show event will occur when you make it visible again. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=getnameList() mx:Script ![CDATA[ import com.sb.CEC_Admin.events.GetStafflistEven; private function getnameList():void{ . } ]] /mx:Script /mx:Canvas
Re: [flexcoders] Question for creationComplete event?
Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the “show” event will occur when you make it visible again. From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
RE: [flexcoders] Question for creationComplete event?
There is no show unless you've been hidden. Most folks hook up to both creationComplete and show From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the show event will occur when you make it visible again. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20
Re: [flexcoders] Question for creationComplete event?
Hi Alex, But I use mx:ViewStack to switch screens with deferent selectedIndex. How to make some fuction run in a screen when I access the screen? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 1:43:51 PM Subject: RE: [flexcoders] Question for creationComplete event? There is no “show” unless you’ve been hidden. Most folks hook up to both creationComplete and show From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:43 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the “show” event will occur when you make it visible again. From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly.. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
RE: [flexcoders] Question for creationComplete event?
Should be the same answer. Did you try it? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, But I use mx:ViewStack to switch screens with deferent selectedIndex. How to make some fuction run in a screen when I access the screen? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 1:43:51 PM Subject: RE: [flexcoders] Question for creationComplete event? There is no show unless you've been hidden. Most folks hook up to both creationComplete and show From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:43 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the show event will occur when you make it visible again. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20
RE: [flexcoders] Question for creationComplete event?
Try show. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=getnameList() mx:Script ![CDATA[ import com.sb.CEC_Admin.events.GetStafflistEven; private function getnameList():void{ . } ]] /mx:Script /mx:Canvas
Re: [flexcoders] Question for creationComplete event?
I try but it doesn't work. Do you have a simple demo? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 2:28:35 PM Subject: RE: [flexcoders] Question for creationComplete event? Should be the same answer. Did you try it? From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:48 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, But I use mx:ViewStack to switch screens with deferent selectedIndex. How to make some fuction run in a screen when I access the screen? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:43:51 PM Subject: RE: [flexcoders] Question for creationComplete event? There is no “show” unless you’ve been hidden. Most folks hook up to both creationComplete and show From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:43 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] . com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the “show” event will occur when you make it visible again. From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Question for creationComplete event?
just a stab in the dark here but I've noticed that the first child of a viewstack does not dispatch it's 'show' event. I guess it's because of what Alex said earlier, if it's never 'hidden', there is no show event to dispatch. that might be why you are expecting 'show' to do something and it's not. try what Alex suggested, put your function in both event handlers and try it show= getnameList( ) creationComplete=getnameList() d. On Tue, Apr 29, 2008 at 3:04 PM, Mark Shen [EMAIL PROTECTED] wrote: I try but it doesn't work. Do you have a simple demo? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 2:28:35 PM Subject: RE: [flexcoders] Question for creationComplete event? Should be the same answer. Did you try it? -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *On Behalf Of *Mark Shen *Sent:* Tuesday, April 29, 2008 10:48 AM *To:* [EMAIL PROTECTED] ups.com *Subject:* Re: [flexcoders] Question for creationComplete event? Hi Alex, But I use mx:ViewStack to switch screens with deferent selectedIndex. How to make some fuction run in a screen when I access the screen? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:43:51 PM Subject: RE: [flexcoders] Question for creationComplete event? There is no show unless you've been hidden. Most folks hook up to both creationComplete and show -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *On Behalf Of *Mark Shen *Sent:* Tuesday, April 29, 2008 10:43 AM *To:* [EMAIL PROTECTED] ups.com *Subject:* Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxmlhttp://www.adobe.com/2006/mxml show= getnameList( ) ... Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] . com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the show event will occur when you make it visible again.. -- *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *On Behalf Of *markflex2007 *Sent:* Tuesday, April 29, 2008 10:01 AM *To:* [EMAIL PROTECTED] ups.com *Subject:* [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxmlhttp://www.adobe.com/2006/mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ . } ]] /mx:Script /mx:Canvas -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20 -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20 -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Question for creationComplete event?
Hi Derrick, How to hidden a screen in viewstack? Do you mean just change selectedIndex.? Please show me a sample,I google this but I can not see any useful result Thanks Mark - Original Message From: Derrick Anderson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 29, 2008 3:11:30 PM Subject: Re: [flexcoders] Question for creationComplete event? just a stab in the dark here but I've noticed that the first child of a viewstack does not dispatch it's 'show' event. I guess it's because of what Alex said earlier, if it's never 'hidden', there is no show event to dispatch. that might be why you are expecting 'show' to do something and it's not. try what Alex suggested, put your function in both event handlers and try it show= getnameList( ) creationComplete=getnameList( ) d. On Tue, Apr 29, 2008 at 3:04 PM, Mark Shen markflex2007@ yahoo.com wrote: I try but it doesn't work. Do you have a simple demo? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 2:28:35 PM Subject: RE: [flexcoders] Question for creationComplete event? Should be the same answer. Did you try it? From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:48 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, But I use mx:ViewStack to switch screens with deferent selectedIndex. How to make some fuction run in a screen when I access the screen? Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:43:51 PM Subject: RE: [flexcoders] Question for creationComplete event? There is no show unless you've been hidden. Most folks hook up to both creationComplete and show From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Tuesday, April 29, 2008 10:43 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Question for creationComplete event? Hi Alex, I use the following code but the function never execute.why. Can you show me a demo? ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml show= getnameList( ) Thanks Mark - Original Message From: Alex Harui [EMAIL PROTECTED] . com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 29, 2008 1:26:30 PM Subject: RE: [flexcoders] Question for creationComplete event? Normally, you set visible=false to hide a screen, so the show event will occur when you make it visible again.. From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Tuesday, April 29, 2008 10:01 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Question for creationComplete event? Hi, I develop a application that have many screen and I develop each screen with a flex component (*.mxml page). I use creationComplete event in one screen but the function only execute when I first access the screen. But I need execute the function when I access the screen because the database change quickly. Please give me a idea which event I can use to call the function so the function can execute when I access the screen. Thanks Mark ps:code for the screen ?xml version=1.0 encoding=utf- 8? mx:Canvas xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete= getnameList( ) mx:Script ![CDATA[ import com.sb.CEC_Admin. events.GetStaffl istEven; private function getnameList( ):void{ .. } ]] /mx:Script . /mx:Canvas Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ