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__ = MyClass.prototype on the receiving side. Maybe also foo.constructor = MyClass. In any case, try the link Martin posted first. I haven't had a look at it, but it possibly provides a cleaner solution. HTH, Mark On 11/14/06, PR Durand <[EMAIL PROTECTED]> wrote:
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 instanceOf MyType) => returns false all the values still are in the object, so I can acces all public vars, but all my get properties for private vars are unavailable, the object is totally untyped ! Even when trying to "re-type" it while sending to another method in the receiving swf: this.displayContent(MyType(myObj)); the displayContent method can't read it as a MyType object.... can't understand... any explaination please? thx PiR _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

