# A question about preloader

**URL:** <https://forum.kirupa.com/t/a-question-about-preloader/225969>\
**Category:** flash\
**Created:** [May 17, 2007, 3:30am UTC](https://forum.kirupa.com/t/a-question-about-preloader/225969 "2007-05-17T03:30:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolm2](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@coolm2](https://forum.kirupa.com/u/coolm2)\
**Post date:** [May 17, 2007, 3:30am UTC](https://forum.kirupa.com/t/a-question-about-preloader/225969/1 "2007-05-17T03:30:20Z")

</div>

I’m a very beginner in ActionScript. I’ve made a preloader for my first page, the problem is that the movie already begins while the preloader still shows up the loading progress, and then disapears in maybe 1 seconds (feels longer though). I used the same Actionscript codes inside my website in two other different places, works good. Does anyone know what the problem is? Thanks!

and another question - there is this weird light box shows up when you move you mouse on the Flash movie area. it says “click to activate and use this control.” (I’ve noticed that there are flash banners on the [www.kirupa.com](http://www.kirupa.com/) website do the same thing) Is there any way to get ride of this? Thanks!

## this is the code I used, which I learned from [Lynda.com](http://Lynda.com)

## var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myMCL.addListener(myListener); myListener.onLoadProgress = function(target\_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) { var loaded:Number = Math.round((bytesLoaded/bytesTotal) \* 100); progressBar.gotoAndStop(loaded); } myListener.onLoadInit = function (target\_mc:MovieClip) { progressBar.\_visible = false; } myListener.onLoadStart = function (target\_mc:MovieClip) { progressBar.\_visible = true; } myMCL.loadClip(“main.swf”, “container”);
