1 Reply Latest reply on Jan 28, 2007 1:53 AM by forosidney

    Problems with nested ViewStack

    forosidney
      Hi there, hope anyone can help me. My name is Sidney and I am from Argentina - South America (I speak spanish, so pardon my english)

      Well, my problem with viewstacks is that a have butons in homeView and I want to be abble to access productView, productView2... from that butons, the problem is that because they are nested I am not abble to acces them. hope you can understand my problem.

      Here is a peace of the code.

      <mx:ViewStack id="allViews" creationPolicy="all">
      <Home id="homeView" label="Inicio" width="100%" height="100%"/>
      <Product id="productView" label="Productos" width="100%" height="100%"/>
      <Product1 id="productView2" label="Productos2" width="100%" height="100%"/>
      <Product3 id="productView3" label="Productos3" width="100%" height="100%"/>
      </mx:ViewStack>

      I can´t use butonBar, linkBar... because I have lots of viewStack childs but I want to show only homeView and access the others childs from there.
        • 1. Re: Problems with nested ViewStack
          forosidney Level 1
          Hi, It's me again, I get this error when I run the application

          TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
          at productsView::ProductCatalogPanel/filter()
          at ProductsView/__filterPanel_filter()
          at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at productsView::ProductFilterPanel/::dispatchFilter()
          at productsView::ProductFilterPanel/__priceSlider_thumbRelease()
          at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.controls.sliderClasses::Slider/ http://www.adobe.com/2006/flex/mx/internal::onThumbRelease()
          at mx.controls.sliderClasses::SliderThumb/ http://www.adobe.com/2006/flex/mx/internal::buttonReleased()
          at mx.controls::Button/::stage_mouseLeaveHandler()
          at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at productsView::ProductFilterPanel/::dispatchFilter()
          at productsView::ProductFilterPanel/__priceSlider_change()
          at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.controls.sliderClasses::Slider/::setValueAt()
          at mx.controls.sliderClasses::Slider/ http://www.adobe.com/2006/flex/mx/internal::onThumbMove()
          at mx.controls.sliderClasses::SliderThumb/::mouseMoveHandler()