Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Martin Wood-Mitrovski
did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize with their type information intact. PR Durand wrote: Hi there! using localConnection seems to totally untype an object, right? ___

[Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Hi there! using localConnection seems to totally untype an object, right? so I use in a sending swf: var myObj:MyType = new MyType(); // then filling object with values I send my object to another swf via localConnection and in my receiving method in my receiving swf : trace (myObj

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Martin Wood-Mitrovski
Object.registerClass is used to register types for a variety of purposes, shared objects, local connections and remoting apart from the MC / class link usage. Did you register the class at both ends? and are you sure its compiled into both movies? check this post from the archive

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use classes... I'll try this. Thanks once more... PiR Martin Wood-Mitrovski a écrit : did you use Object.registerClass ? you have to register your types for them to serialize / de-serialize

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread PR Durand
Nope... it seems that object.registerClass remains a link between AS1 class and a movieClip... I can't get my object pass through the localConnection... :( ++ PiR PR Durand a écrit : Hi Martin thanks for your answer... No I didn't, cause I thought it was deprecated since we could use

Re: [Flashcoders] LocalConnection breaks object types?

2006-11-14 Thread Mark Winterhalder
can't understand... any explaination please? Just guessing, I haven't tried anything like this with localConnection, but it seems to be the same like with local SharedObjects: If you have MyClass in both SWFs, and send an instance 'foo' to the other, try to set foo.__proto__ =