Hi , In addition to Pranams comments
If you don't want to use childCanvas1 again , send it for garbage collection,because removeAllChildren() just sets the parent reference to NULL of an Object, But the object won't get destroyed . Can any body please give best idea for sending the Child for Garbage collection Regards Kiran On Sat, Jun 13, 2009 at 1:44 PM, Ripi <[email protected]> wrote: > > Hi Adi, > > You can also follow a simple architecture. > > 1. Keep one parent component. (ex parentCanvas) > 2. Add Child component(childCanvas1) to the above parent component > (parentCanvas) > 3. To show another canvas(childCanvas2) first remove all the children > from parentCanvas using parentCanvas.removeAllChildren(). > 4. Add childCanvas2 to parentCanvas using parentCanvas.addChild > (childCanvas2) > > Please let me know if you need more information on this. > > Thanks > > Pranam > > On Jun 12, 2:15 pm, adi <[email protected]> wrote: > > How can I call one MXML from the other. as usually I want to move from > > one screen to other one. > > > > At the same time I do not want the old screen to be displayed behibd > > the shade...I want to replace complete screen screen...Is that > > possible ? > > > > Pop up manager gives me error saying > > > > "Error: C0001E: Only one ServiceLocator instance can be instantiated" > > > > Please suggest > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

