Title: Flash preloader not working in WordPress
Last modified: August 20, 2016

---

# Flash preloader not working in WordPress

 *  [gamesbond](https://wordpress.org/support/users/gamesbond/)
 * (@gamesbond)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/flash-preloader-not-working-in-wordpress/)
 * Hello
 * I’m new to AS3. I’m building a wordpress website and want to add a flash preloader
   that loads an external flash movie. Locally it works fine, if I type in the direct
   URL in the browser it works fine too but as soon as I insert the file into WordPress,
   I get URL not found error. I have tried both relative and absolute URL’s and 
   neither work in WordPress. All files are sitting in the same folder. I’m using
   a wordpress plugin to insert flash into wordpress. Here is the preloader code:
 * var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.
   PROGRESS, loop); l.contentLoaderInfo.addEventListener(Event.COMPLET E, done);
   l.load(new URLRequest(“tvHome.swf”));
 * function loop(e:ProgressEvent):void
    { var bytes:Number= e.bytesLoaded; var bytes_t:
   Number = e.bytesTotal; var perc:Number = bytes / bytes_t; var frame:Number = 
   Math.ceil(perc*100); var percent:Number =Math.ceil((bytes*100)/bytes_t) count.
   text = percent+”%”; preloader.gotoAndPlay(frame); }
 * function done(e:Event):void
    { l.contentLoaderInfo.removeEventListener(ProgressEv
   ent.PROGRESS, loop); l.contentLoaderInfo.removeEventListener(Event.COMP LETE,
   done); removeChild(preloader); l.x = stage.stageWidth/2 – (l.width/2); l.y = 
   stage.stageHeight/2 -(l.height/2); addChild(l);
 * }
 * Thanks

The topic ‘Flash preloader not working in WordPress’ is closed to new replies.

## Tags

 * [flash](https://wordpress.org/support/topic-tag/flash/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [gamesbond](https://wordpress.org/support/users/gamesbond/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/flash-preloader-not-working-in-wordpress/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
