-
It would be really helpfull if somebody could tell me how to make a simple percenatge preloader. All my attempts to solve this simple task failed...
Thanks for any help.
-
If you are using Flash 5, try following:
Create a dynamic text field and in the variable field type 'Percent' for example.
Insert following script to the first frame of your movie:
Percent = int((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
play ();
} else {
gotoAndPlay ("Movie");
}
"Movie" is a labeled frame.
Insert following script to the second frame:
gotoAndPlay (_currentframe-1);
-
unfortunately it doesn`t work
that is what I did:
first frame:
Percent = int((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "%";
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
play ();
} else {
gotoAndPlay 3;
}
second frame:
gotoAndPlay 1;
third frame: that is where my movie starts
I created a dynamic text with variable `percent` (text located in first and second frame)
-
thank you all for running this forum
finally I figured it out... but without your help I wouldn`t move...
thank you so much
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|