Rob -

I was looking for an example of what Ethan was doing which wasnt working :)

At 04:02 PM 7/24/2006, Rob Rusher wrote:

>Sample:
><?xml version="1.0" encoding="utf-8"?>
><mx:Application 
>xmlns:mx="<http://www.adobe.com/2006/mxml>http://www.adobe.com/2006/mxml";
>                 xmlns:demand="components.*">
><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:test id="contactInfo"/>
><demand:test2 id="touchPlans"/>
></mx:ViewStack>
><mx:Button label="Call Method" click="this.whatsNext( event, 'tps' )"/>
></mx:Application>
>
>test and test2 are empty components that extend Box and Panel, 
>respectively. Works without issue.
>There is something else to your problem. Break it down to a simple example 
>as I did and then build it back up.
>
>
>
>On 7/24/06, Ethan Miller < <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]> wrote:
>
>Yes, all the custom components are from the demand namespace and are
>Panels. They all load fine, it's the reference to the view stack
>itself that is failing,.
>
> > 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
>They do, unless I'm misunderstanding you. All the referenced
>components are Panels..
>
>??
>
>ethan
>
>
>
>
>--
>--
>Regards,
>Rob Rusher
>
>Adobe Certified Breeze, ColdFusion MX and Flex 2 Instructor
>m: 303-885-7044
>im: robrusher 
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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