ok i did this tutorial http://www.kirupa.com/developer/mx/preloader.asp and everything went well. now say if rather than finding all the bytes for _root. i only wanted to find the bytes for a mc how would it be done. i used the same code on that tutorial and targeted my getBytesLoaded(); and getBytesTotal(); functions to be
_root.mcname.getBytesTotal(); and _root.mcname.getBytesLoaded(); and am now getting an error message. neone get what im asking? thanks
getBytesTotal and such I believe are for the whole entire movie/dynamically loaded item all around.
I don’t believe there is a way to preloader 1 item (without dynamically loading it, which you can’t do with an MC, only an image or song, etc).
May I ask why you need to preload 1 mc only?
s’ppose you want a similar preloader to what the installer on windows has so it can tell you what item.
You could probably do it by saving the individual items as shockwaves and give them a function that returns their totalbytes when called
then in your main swf make a function that calls the one on each item and displays them and/or adds them up
well i guess i want to know how to make a percent preloader for loading in swf files. because ive been doing it by loading an swf into a blank mc container and then getting the bytes loaded and total for that mc container. is this the best way to make a percent preloader for this?
Put your preloader on the .swf file you are loading.
Just don’t use _root because that will read the _root of your main timeline of your main movie.
So you can use _parent I believe.
If not _parent… try “this” (no quotes).
<FONT FACE=“verdana” STYLE=“font-size: 10px”>I really need to get crankin on my Flash version of my site… I would know this if I worked on that part</FONT> :-\
hey thx for the quick response and all ur help
No problem, I hope you get it to work though
<FONT FACE=“Verdana” STYLE=“font-size: 10px”>Alright, its official, I am going to work on my Flash version tomorrow… that will give me a chance to figure this stuff out myself and I can stop guessing…lol</FONT>