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?
___
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
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
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
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
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__ =
6 matches
Mail list logo