Greetings -

The following compiles fine, but at run time, when the function gets  
called, I get a null object reference error for demandStack. I've  
tried a fully-qualified path to demand stack as well...

Any ideas?

thanks, ethan

<mx:Script>
        <![CDATA[
                public function whatsNext(e:Event, next:String):void {
                        if (next=="tps"){
                                demandStack.selectedIndex=1;
                        }
                }
        ]]>
</mx:Script>

                                                        
<mx:ViewStack id="demandStack" width="100%" height="100%">

        <demand:ContactInfo id="contactInfo"/>
        
        <demand:TouchPlans id="touchPlans"/>    
        
        <demand:TouchPlanOptions id="touchOptions"/>
        
        <demand:Vectors id="assignVectors"/>    
        
        <demand:Vectors id="personalize"/>      
        
        <demand:Vectors id="review"/>
                
</mx:ViewStack>

</mx:HBox>



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

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