Thaks for your reply.
I tried, but no use.

Pradeep

On Mar 18, 5:16 pm, krishna shinde <krish.shinde2...@gmail.com> wrote:
> Hi,
>   i think
>     as all of your pages are under viewstack , there is no need to add event
> listener for moving between diffrent pages,
>  u can do it using viewstackid.selectindex=page no.
>
> thanks & regards
> Krishna Shinde
> GridLogics Technologies
> 9028903199
>
> On Thu, Mar 18, 2010 at 5:33 PM, pradeep.pa...@gmail.com <
>
>
>
>
>
> pradeep.pa...@gmail.com> wrote:
> > 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()<http://adobe.com/AS3/2006/builtin::apply%28%29>
> > 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<flex_india%2bunsubscr...@googlegrou­ps.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/flex_india?hl=en.
>
> --- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to