It's because selectedChild takes a Container, not a String. Just change
the type in your method declaration to:
public function switchStack(stack_id:Container,title:String):void {
When you call it, you are passing in a Container, so it should be fine.
-Ryan
selectedChild is a container, not a string
if you have a container id=addCustoner you want to type the param as
container
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George Georgiou
Sent: Saturday, October 13, 2007 4:25 PM
To:
Oh - I didn't know that there is a datatype 'container'.
thanks for your help!!! It works now!! :-)
George
On 10/14/07, Alex Harui [EMAIL PROTECTED] wrote:
selectedChild is a container, not a string
if you have a container id=addCustoner you want to type the param as
container
1067: Implicit coercion of a value of type String to an unrelated type
mx.core:Container.
I really don't understand what's wrong and what this error mean. Error
points to the highlighted line. Any help/tips? Thanks!!
Here is my code:
mx:Script
![CDATA[
[Bindable]
private var
4 matches
Mail list logo