Thanks hobbit72 for your solution. I am new to flex and try to understand the inner workings. You helped!
Best Regards,
Marc
Main Topics
Browse All TopicsDear all
I try to create a flex component test that is made out of a canvas component - only child is a viewstack with two views: two other components B and C.
From the main application I try to instantiate the component A. When I analyse the created component In debug view I only see the component created - the viewstack and its children are not created. What is going wrong? I expected that the full component is instantiated or at least the viewstack with one child (when creationPolicy is not set).
Thanks in advance for your help.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: hobbit72Posted on 2009-08-11 at 22:36:31ID: 25075942
None of testc's children will be created until you add it to the main app as a child
private function clickhandler (event:Event):void
{
var test:testc=new testc();
addChild( test); // test's children get created now
}
You will have to set the creationPoilcy of testc to "all" as well as the ViewStack named app if you want testcc and testccc to be created at that moment too