# Preloading external swf

**URL:** https://forum.kirupa.com/t/preloading-external-swf/328712
**Category:** Uncategorized
**Created:** [June 8, 2012, 9:20pm UTC](https://forum.kirupa.com/t/preloading-external-swf/328712 "2012-06-08T21:20:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![krizinxgren](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@krizinxgren](https://forum.kirupa.com/u/krizinxgren)
#### Post date: [June 8, 2012, 9:20pm UTC](https://forum.kirupa.com/t/preloading-external-swf/328712/1 "2012-06-08T21:20:00Z")

</div>

Good day am using this preloader to preload content in flashthis.stop();onEnterFrame = function () { loaded = this.getBytesLoaded()/this.getBytesTotal()\*100; if (loaded != 100) { pirilodm.gotoAndStop(Math.round(loaded)); } else { this.gotoAndStop(102);}};it works well also let me mention that pirilodm is the animation that plays acording to how much bytes already loaded but how can i use it to preload external swf if anyone knows i will be greatful for advice also this is were i found the preloader tutorial but i have modified my above code a bit to suit what am trying to do.[http://www.kirupa.com/developer/actionscript/tween\_as\_preloader.htmThanks](http://www.kirupa.com/developer/actionscript/tween_as_preloader.htmThanks)
