Make sure "n" is an integer:

var n : int;

viewStacks use integers while viewStates use strings.

-TH

--- In [email protected], Ethan Miller <[EMAIL PROTECTED]> wrote:
>
> Greetings -
> 
> I need to control a viewStack from some plan old buttons (rather 
than  
> from  navigator bound to the stack). I though I could simply set 
the  
> click event on the button to be:
> 
> click="stackName.selectedIndex='n'"
> 
> (where 'stackName' is the name of my stack and 'n' is the stack 
child  
> in question.
> 
> However, on compile, this return the following error (on the 
button):
> 
> "Implicit coercion of a value of type String to an unrelated type 
int."
> 
> The view stack is in the same file (there's another stack in that  
> file as well).
> 
> More generally, is there a way to reference (and make active) an 
item  
> in a viewStack by id rather than by sequential child number?
> 
> cheers, ethan
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/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