Are the custom components used from the demand namespace containers?
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

On 7/24/06, Ethan Miller <[EMAIL PROTECTED]> wrote:

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




__,_._,___

Reply via email to