Hi everybody.
Allright, i am loading an external jpg into a movieClip. No problem there.
I want to show the user the percentage of the image that as been loaded.
here is my code:
onClipEvent (data) {
total_bytes = this.getBytesTotal();
loaded_bytes = this.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
txtfield = percent_done + ” %”;
}
It works but it only give me “100%” when the image is loaded. I don’t see the progression of the percentage… (ex: 5%, 43%...)
What should i do to make it work ?
thx
Author
If i put ‘enterFrame’ instead of on data, the image dont even show !
- 24 December 2002 03:19 PM
-
Author
Allright, it work, but not on a Mac… Damn Mac.
When i am testing the load Jpeg function on a Mac(Internet Explorer) the loading script works but the image is not displayed.
Does flash have a function to refresh the Mc that contained the image ?
The function works properly on a pc (Ie and Netscape) but not on a mac (Damn Mac !!!).
Allright , so if you have ideas, please share,
Thx.
- 26 December 2002 01:13 AM
-
Originally posted by simonboris
Hi everybody.Allright, i am loading an external jpg into a movieClip. No problem there.
I want to show the user the percentage of the image that as been loaded.
here is my code:
onClipEvent (data) {
total_bytes = this.getBytesTotal();
loaded_bytes = this.getBytesLoaded();
percent_done = int((loaded_bytes/total_bytes)*100);
txtfield = percent_done + ” %”;
}It works but it only give me “100%” when the image is loaded. I don’t see the progression of the percentage… (ex: 5%, 43%...)
What should i do to make it work ?
thx
i’m gonna use this code and try to do it too…
where does the code go?... in the host MC first frame? and how do i load the JPG into ..
sorry.. i miss class when GOD was handling out brains..
- 08 February 2003 09:26 PM
-
So I came across this thread because I am having a simmilar problem with loading jpegs. The link above has a great tutorial, but it dosn’t seem to solve the problem of how to get a preloader to work with the data of the jpeg, not the clip that you are replacing. Any thoughts?
I may have not used the technique described in pedalspeed’s link correctley, however I can’t figure out what is wrong for the life of me.
—xenite
- 30 April 2003 06:50 PM
-
- Log in or join for free to make a comment.


