On top of using creationPolicy="all", I've been inititalizing my child
components from the main application.  That way if something goes
wrong at runtime, I can disable the child in the the ViewStack to
prevent the application from throwing an error.  I have the child send
back an event telling the parent it's properly intialized.

Mike


On 2/19/07, Justin Haygood <[EMAIL PROTECTED]> wrote:




That works J



Thanks!



 ________________________________


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles
 Sent: Monday, February 19, 2007 12:06 PM
 To: [email protected]
 Subject: RE: [AFFUG Discuss] Flex 2 issue: mx.containers.ViewStack




You might try setting the creationPolicy="all" for the view stack to force
child creation.




Darin Kohles, Application Developer
 [EMAIL PROTECTED]
 Digital Positions, Inc.
 2289 Peachtree Road NE
 Atlanta, GA 30309

 404-351-2366 phone
 404-351-4055 fax
 http://www.d-p.com/





 ________________________________


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Haygood
 Sent: Monday, February 19, 2007 11:36 AM
 To: [email protected]
 Subject: [AFFUG Discuss] Flex 2 issue: mx.containers.ViewStack

So, I have a ViewStack with a a Canvas, and 2 custom controls that inherit
from Canvas. The ViewStack also implements an interface with the function
show(), which is called when the screen comes into focus by its parent (a
TabNavigator).



The first thing ViewStack does is set the selectedChild to one of the custom
controls, which works fine, and then calls the function show() on that
child, which according to trace(), also works fine.



Then here comes the problem: the very first time the ViewStack's custom
control child is called, the custom control's show doesn't do anything.
However, switching to a different tab in the ViewStack's parent
TabNavigator, and then switching back to to the ViewStack… everything works
fine.



Any ideas or hints would be very much helpful, as I'm lost on trying to
figure this one out….



Aye aye aye

Justin Haygood | Software Engineer | EyeWonder
 Phone 678.891.2031 | Mobile 404.271.2273| Fax 678.891.2017
 [EMAIL PROTECTED] | AIM ewjhaygood

BlackBerry: [EMAIL PROTECTED]


 EyeWonder. Richer Media. Richer Results.
 www.eyewonder.com




-------------------------------------------------------------
 To unsubscribe from this list, simply email the list with unsubscribe in
the subject line

 For more info, see http://www.affug.com
 Archive @
http://www.mail-archive.com/discussion%40affug.com/
 List hosted by FusionLink
-------------------------------------------------------------

-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line

For more info, see http://www.affug.com
Archive @
http://www.mail-archive.com/discussion%40affug.com/
List hosted by FusionLink
-------------------------------------------------------------
-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the
subject line

For more info, see http://www.affug.com
Archive @
http://www.mail-archive.com/discussion%40affug.com/
List hosted by FusionLink
-------------------------------------------------------------


--
Mike
----------
http://www.mikebritton.com
http://www.mikenkim.com


-------------------------------------------------------------
To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line

For more info, see http://www.affug.com
Archive @ http://www.mail-archive.com/discussion%40affug.com/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------


Reply via email to