um, you can't really do that with javascript. you have to write some code in flash actionscript. you can just get a preloader at newgrounds.com or albinoblacksheep.com and customize it... it shouldn't take more than a few lines of code, but flash mx might work differently. i'm used to flash 5 actionscript.