Hi,
You can pass any kind of arguments to the receiving method as long
you've specified the same type in the method definition.

Sending SWF===========var obj:Object = new Object();obj.str1 =
"Hello";obj.str2 = "World!";

var str3:String = "is working through LocalConnection!";

var _local:LocalConnection = new LocalConnection();
_local.send("myConnection" , "traceHelloWorld", obj, str3);


Receiving SWF============var _local:LocalConnection = new
LocalConnection();
_local.client = this;_local.connect("myConnection");
public function traceHelloWorld(myObj:Object, myStr:String):void{
trace(myObj.str1 + " "+ myObj.str2 + " " + myStr);
}

Fabien


--- In [email protected], hamza bakkali <hamzah...@...>
wrote:
>
> Hi  all,
>
>
>
> I try to use a localConnection to communicate 2 swfs.
>
>
>
> var _local:LocalConnection =  new LocalConnection();
>
> _local.send("myConnection" , "myMethodName",arg1);
>
>
>
> the arg1 can be a complex type?
>
>
>
> Thanks
>

Reply via email to