# Self preloaders in AS3

**URL:** <https://forum.kirupa.com/t/self-preloaders-in-as3/322777>\
**Category:** flash\
**Created:** [June 2, 2011, 6:47pm UTC](https://forum.kirupa.com/t/self-preloaders-in-as3/322777 "2011-06-02T18:47:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rumblesushi](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rumblesushi](https://forum.kirupa.com/u/rumblesushi)\
**Post date:** [June 2, 2011, 6:47pm UTC](https://forum.kirupa.com/t/self-preloaders-in-as3/322777/1 "2011-06-02T18:47:57Z")

</div>

Do any of you guys know of an elegent, pure code solution?

I need to make a self preloader for a single SWF, where obviously my normal, preferred solution is an external preloader.

I followed Keith’s tutorial here - [http://www.bit-101.com/blog/?p=946](http://www.bit-101.com/blog/?p=946)

It simply doesn’t work, either something I’m doing wrong (unlikely), or the current Flex SDK.

What happens is it embeds all my content TWICE. I end up with a 15 meg file instead of 7.5 megs, plus the factory class doesn’t even work, the constructor doesn’t even fire.

All it does is copy all my content to another frame it seems 😃

Any idea how to fix this method or of another method?

Cheers,  
RumbleSushi
