<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="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 <
[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 problemThey 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 __._,_.___
--
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.
__,_._,___
- Re: [flexcoders] Reference to View Stack Failing Rob Rusher
- Re: [flexcoders] Reference to View Stack Failing Jeff Tapper
- Re: [flexcoders] Reference to View Stack Failing Jeff Tapper
Reply via email to