Sharing ByteArray between streams (flash Workers)

I am trying to use a stream in my flex application, the stream should use the object I want to transfer using worker.setSharedProperty("bytes",bytes) , bytes.sharable is set to true,

The serialized object implements IExternalizable with the RemoteClass tag, since it is serialized in different scripts (cloning, saving to DB, etc.), but when I send it to the workflow, I get this error:

 ArgumentError: Error #2173: Unable to read object in stream. The class com.model.vo.ProjectVO does not implement flash.utils.IExternalizable but is aliased to an externalizable class. at flash.utils::ByteArray/readObject() 

I tried the following 2 solutions:

  • registerClassAlias("com.model.vo.ProjectVO",ProjectVO) as suggested at this link
  • In my thread invoking an instance of ProjectVO as suggested here: link

Without this, I assume that this is due to an attempt to pass objects that implement IExternalizable, and would like to hear if someone has succeeded. Thanks!

+7
multithreading flash actionscript-3
source share

No one has answered this question yet.

See related questions:

2722
Flash CS4 refuses to let go
1989
"implements Runnable" vs "extends Thread" in Java
1487
What is the difference between process and thread?
1266
How to update GUI from another thread?
1192
How to use threads in Python?
1147
The difference between wait () and sleep ()
1074
How do servlets work? Create, Sessions, Shared Variables, and Multithreading
761
What is a daemon thread in Java?
674
What is a thread safe or insecure thread in PHP?
0
Can I take advantage of as3 Workers to load external swfs

All Articles