Hi All, I am developing an application wherein i need to navigate among different pages. All these pages (page1, page2, page3...)are under viewstack. I am navigating from page1 to page2 using page2.addEventListener(FlexEvent.SHOW, abc); viewStack.selectedChild = page2; function abc(event) { page2.removeEventListener(FlexEvent.SHOW, abc); } And when I am in page2 and tried navigate to page 1 using viewStack.selectedChild = page1;
The problem is here now when i navigate from page 1 to page2 using page2.addEventListener(FlexEvent.SHOW, abc); viewStack.selectedChild = page2; function abc(event) { page2.removeEventListener(FlexEvent.SHOW, abc); } i am getting an Error popup saying: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.containers::Panel/mx.containers:Panel::commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/::validateProperties() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() I have no clue why its happening Any Help Please. Pradeep -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.