Remove the quotes which are around the number (n). selectedIndex property expects an integer and quotes around the number converts the number to string in ActionScript.

 

-Ashish

 

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ethan Miller
Sent: Tuesday, June 13, 2006 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] View States from Non Bound Buttons

 

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

__._,_.___

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