Transitions between external swf files vs. my preloader

hi everybody!
i’m using transitions between external swf files (from kirupa tutorials: http://www.kirupa.com/developer/mx2004/transitions.htm) and i’d like to add my preloader to these swf files… i have been triying to do it, but i can’t :frowning:
can someone help me, please?

my preloader code:

first frame: “loop”
byteloaded = _root.getBytesLoaded();
bytetotal = _root.getBytesTotal();
loaded = int(byteloaded/bytetotal*100);
load_bar.gotoAndStop(loaded);

second frame:
if (byteloaded == bytetotal) {
gotoAndPlay(“end”);
} else {
gotoAndPlay(“loop”);
}

third frame: “end”
gotoAndPlay(“go”);

load_bar is a mc with an animation of 100 frames, and i added to it a code:
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (enterFrame) {
this._x = _parent._xmouse;
this._y = _parent._ymouse;
}

onClipEvent (unload) {
Mouse.show();
}
once the swf is loaded, it has to show the default mouse cursor again…

well, that’s all…
i’m gonna appreciate your help
thanx in advance
cheers!

(sorry, i know my english isn’t good)

wouldn’t you just add the preloader to the fla’s of each swf you are loading?
(then re-export the swf’s)

thanx 4 your reply jillymo…
yeah, i did it… but it didn’t work…

Sigh, don’t use _root.getBytesLoaded() but this.getBytesLoaded(). Also, the search button comes in handy.

thanx 4 your reply too, Voetsjoeba…
alright, i’ll try it…

yeah! thank u very much Voetsjoeba!
it worked!
i only had to change _root by this!
just it!
COOL!
:smiley:
thanx again!