# Pass a loaded Sprite into a Worker

**URL:** <https://forum.kirupa.com/t/pass-a-loaded-sprite-into-a-worker/330508>\
**Category:** flash\
**Created:** [January 30, 2013, 10:40pm UTC](https://forum.kirupa.com/t/pass-a-loaded-sprite-into-a-worker/330508 "2013-01-30T22:40:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)\
**Post date:** [January 30, 2013, 10:40pm UTC](https://forum.kirupa.com/t/pass-a-loaded-sprite-into-a-worker/330508/1 "2013-01-30T22:40:09Z")

</div>

I’ve been trying to pass my Sprite (a loaded swf-image) into my Worker in some way.  
I’ve tried to just pass the sprite as the send-command to the MessageChannel, like this:

```auto
Main.mainToWorker.send(e.currentTarget.content);

```

But no luck on that one. And neither if I pass the sprite to a shared ByteArray:

```auto
Main.byteArray.writeObject(e.currentTarget.content);

```

All I want is to pass the Sprite to the worker, without converting it to a bitmap or any other type.

_Thanks in advance,  
Tompa_
