What it is, when i try to load a swf (which contains a preloader, which i got from this site) into another flash movie, the preloader no longer works, although it works fine when it stands alone.
Can any one help me with this one???
Thanks x
What it is, when i try to load a swf (which contains a preloader, which i got from this site) into another flash movie, the preloader no longer works, although it works fine when it stands alone.
Can any one help me with this one???
Thanks x
that shouldn’t happen, post your project
Problem of scope (there’s probably a reference to the _root in your loaded movie). Which preloader did you use?
But here’s the code, i’ve used to load the movie:
_root.photoMovies.loadMovie(“firstFloor1.swf”);
And here’s the preloader code, used in the movie i’m loading:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent100;
_root.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndStop(3);
}
Or is there another way i can send u the files???
Thanks alot !
As Ilyas said, you have _root in your preloader. That means it’s going to look to the main stage timeline. You have to change “_root” to “this” (e.g. “_root.loadBar.blahblah” to “this.loadBar.blahblah”) JUST in the preloader so it will look to the movie you are loading and not the main stage.
Hope this helps.
:: Copyright KIRUPA 2024 //--