Problems with LoadMovie..!

*Originally posted by kax *
**remove _root from all your script. that should fix it. :slight_smile: **

IĀ“ve try, but didnĀ“t work…

All i really want to do is create a external .swf with a preloader , and then
when you load in the main movie , it starts loading a .mp3 file on the server
using that preloader.

Is this a dificult task…? :-\

no, it isn’t. :-\

but if that’s not working, something else is wrong too, i’d need to see the files.
i should be able to open your fla’s if you .zip them.

Here it is

So, kax

Did you open the file?

nope… i can’t open it, that’s why i told you to .zip the file. :-
don’t ask why, i have no idea, but it usually works. :wink:

itĀ“s because im using Macintosh and you are with Windows…
Give a email , and will send the same file but with encode to Windows.

That will work:sure:

*****@msn.com :sigh:

just send it…

Did you got it this time?

nope… i didn’t receive your email. :-\

is it

verysmartandhelpfulperson@everyonelovesyou.com

?

yeah…

and please remove my address from your post. i posted it that way for a reason. :sigh:

ok… this script worked for me. =)

stop();
intro = new Sound(this);
intro.loadSound("http://www.filete.0catch.com/intro.mp3");
loadBar._xscale = 0;
percentLoadedText = "0%";
onEnterFrame = function () {
	introBytesTotal = intro.getBytesTotal();
	introBytesLoaded = intro.getBytesLoaded();
	if (introBytesLoaded>0) {
		introLoading = Math.round((introBytesLoaded/introBytesTotal)*100);
		percentLoadedText = introLoading+"%";
		loadBar._xscale = introLoading;
		if (introLoading >= 100) {
			this.gotoAndPlay(2);
			delete this.onEnterFrame;
		}
	}
};

Great!! :thumb:

It works…!!

Thanks a lot , kax

But now , i want to find out , what was wrong with the code i made…
Can you give me a clue?

thanks again

do you really want to know? :stuck_out_tongue:

well, i removed a couple of ā€˜useless’ variables in your script and changed _root.gotoAndPlay(2) to this.gotoAndPlay(2). :wink:

Ah;)

Now i see , i will check those variables, you know
we always learn with our mistakes…:slight_smile:

thanks again , kax
and let me just say, that you are a member of my buddy list!

See you!

no problem, filete. =)

you should always use this/_parent instead of _root. it could save you a lot of problems (like this one!). :wink: