Preload problem

I am using some actionscript that loads swf like a photogallery. It works great! But when i add a preloader to the swf file being loaded, it doesn’t appear. However it does work when i link to it directly (http://www.neteclipse.com/images/3dvid2.swf) I am stumped.

The Site is www.neteclipse.com and go to the 3d video section under portfolio. The videos come up but it need the preloader.

P.S. Make sure you have broadband
any ideas?

Are you using components? If you are, search the forums for similar problems, it has been explained numerous times.

Otherwise you may need to check your code or post your fla.

Check your paths. If you’ve used _root, that’s where your problem is. When loading an swf into another, _root will target the main timeline of the host movie for the main movie and everything inside it.

i bet its a path problem

Are you loading into movieclips or _x and _y positions? If you 're loading into clips then use the “this” keyword, ie
[AS]
onClipEvent(enterFrame){
loadedBytes = this.getBytesLoaded();
totalBytes = this.getBytesTotal();
}
[/AS]

thanks Carixpig. I did that and i took out any _root I saw and it worked! Excellent…i am very happy that is working.

Thanks to all for your help!

P.S. Did any of you look at the site. It is only partly done but any thoughts on the design? I still have sound, contact page, and the portfolio page is only partly done. The home page is lame also but other than that.