the rest of your question...
click="stackName.selectedIndex='stackName.getChildIndex(nChild)'"
where nChild is the id you are looking for.
Peace, Mike
On 6/13/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Hi,
I don't know exactly where you are getting your 'n'.
But if it can be cast, why don't you cast the string to int().
like;
click="stackName.selectedIndex='int(n)'"
?
Peace, MikeOn 6/13/06, 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
--
What goes up, does come down.
--
What goes up, does come down. __._,_.___
--
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.
__,_._,___
Reply via email to

