ViewStack requires them to be container components.
Make sure all of the components used in the ViewStack extend a container component. That should solve your problem
Regards,
Rob Rusher
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>
--
--
Regards,
Rob Rusher
Adobe Certified Breeze, ColdFusion MX and Flex 2 Instructor
m: 303-885-7044
im: robrusher __._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcoders] Reference to View Stack Failing Ethan Miller
- Re: [flexcoders] Reference to View Stack Failing Rob Rusher
- Re: [flexcoders] Reference to View Stack Failing Ethan Miller
- Re: [flexcoders] Reference to View Stack Failing Rob Rusher
- Re: [flexcoders] Reference to View Stack Fai... Jeff Tapper
- Re: [flexcoders] Reference to View Stack Failing Jeff Tapper
Reply via email to

