RE: [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-15 Thread Ryan Frishberg
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

RE: [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-14 Thread Alex Harui
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:

Re: [flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-14 Thread George Georgiou
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

[flexcoders] 1067: Implicit coercion of a value of type String to an unrelated type mx.core:Container.

2007-10-13 Thread George Georgiou
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