# AS3 Worker - External or internal SWF?

**URL:** https://forum.kirupa.com/t/as3-worker-external-or-internal-swf/330506
**Category:** flash
**Created:** [January 30, 2013, 4:38pm UTC](https://forum.kirupa.com/t/as3-worker-external-or-internal-swf/330506 "2013-01-30T16:38:22Z")
**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, 4:38pm UTC](https://forum.kirupa.com/t/as3-worker-external-or-internal-swf/330506/1 "2013-01-30T16:38:22Z")

</div>

I’m playing around with threads in AS3 using the Worker-class.  
I’ve searched for tutorials all over the net but haven’t managed to find many enough to get some questions solved, so I’ll ask it here!

The thing with the Worker-class is that you can run another SWF side by side with your main SWF and share memory though there.

Some codes I’ve seen is creating a whole new SWF and then just embeds it into their code using the [Embed].  
Others are doing it internally within one SWF like this:

```auto
WorkerDomain.current.createWorker(this.loaderInfo.bytes);

```

So my question is!  
Which of these way are the best, or is there even a difference?

_Thanks in advance,  
Tompa_
