Hello all!

I've been having this particular problem, I have 2 canvas inside a
viewStack, lest say something like:

<mx:ViewStack id="viewStack" width="100%" height="100%">
     <mx:Canvas id="list" label="List">
          <mx:DataGrid doubleClickEnabled="true"                                
   
              doubleClick="viewStack.selectedIndex = 1;
              input.text="list.selectedItem.someValue">
          </mx:DataGrid>
     </mx:Canvas>
     <mx:Canvas id="form" label="Form">
          <mx:TextInput id="input"/>
     </mx:Canvas>
</mx:ViewStack>

Its simple, but whenever I double-click on the DataGrid, Flex gives an
error saying that it can't access a null object (referring to the
textinput "input" that is defined inside the second Canvas and is hidden).

I've noticed that when one uses viewstacks or accordions and wants to
access to an object inside a container that is hidden to initialize
it, there is no way to access it. 

I've tried selecting the canvas first and then assinging the data,
like I did in the code above, but doesn't work either.

I really need help with this, otherwise Im gonna have to change the
layout of the hall application.

Thanks in advance!





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to