all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

What's wrong with my preloader??


Re: What's wrong with my preloader?? tralfaz
1/1/2005 12:25:51 PM
flash actionscript:
Are you typing the code into your forum post by hand? Better to copy
and paste from the actual code. There is no such Flash function as
'createEmptyMovie'. It has to be 'createEmptyMovieClip' but I
imagine you just typed it in wrong into your post here?
When Flash functions are typed correctly they will change color to let
you know it's a known function in Flash.
tralfaz


[quoted text, click to view]

What's wrong with my preloader?? Tecsun
1/1/2005 6:20:13 PM
I have built three swf, 1) main.swf , 2) preloader.swf, 3) image.swf

i have put a button in main.swf and it's script is:
on (release) {
createEmptyMovie ("01_load", 900);
loadMovie ("preloader.swf", "01_load");
createEmptyMovie ("01_img", 1000);
loadMovie ("image.swf", "01_img");
}

both preloader.swf and image.swf have been loaded successfully into the
main.swf, but the preloader didn't work, it can't detect the image.swf loading
progress..

here is my preloader script:
totalBytes = _parent.01_img.getBytesTotal ();
loadedBytes = _parent.01_img.getBytesLoaded ();
percent = loadedBytes / totalBytes * 100;
loadbar._xscale = percent;
if ( loadedBytes == totalBytes ) {
this.unloadMovie ();
}

what's wrong with my work??? & 1 more ques. how to manually postion the
movieclip "01_img" i mentioned above once it was created? Thank you very much~!
Re: What's wrong with my preloader?? Tecsun
1/1/2005 11:35:00 PM
AddThis Social Bookmark Button