# URL problem

**URL:** https://forum.kirupa.com/t/url-problem/131871
**Category:** Uncategorized
**Created:** [December 20, 2004, 7:47pm UTC](https://forum.kirupa.com/t/url-problem/131871 "2004-12-20T19:47:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Soap\_Hustler](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Soap\_Hustler](https://forum.kirupa.com/u/Soap_Hustler)
#### Post date: [December 20, 2004, 7:47pm UTC](https://forum.kirupa.com/t/url-problem/131871/1 "2004-12-20T19:47:59Z")

</div>

onClipEvent (enterFrame) {  
if (!loaded && this.\_url != \_root.\_url) {  
if (this.getBytesLoaded() == this.getBytesTotal()) {  
loaded = true;  
\_root.transition.gotoAndPlay(“opening”);  
}  
}  
}

I’m loading external swfs using the code from this tutorial. [http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

It works when the URL is DIRECTLY pathed to the swf, but not when it is placed in an html page. any clue why?
