|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Loading counter
What is the actionscript to put to display the percentage of the movie on the first frame to display that it is loading.
Example: loading 45% Thank for the help |
|
#2
|
||||
|
||||
|
Make a movie clip and inside the movie clip place a dynamic text field with a variable name of text Inside the movie clip's actions panel, place this code:
Code:
onClipEvent (load) {
_parent.stop();
}
onClipEvent (enterFrame) {
text = int( _parent.getBytesLoaded()/1000) add " of " add int(_parent.getBytesTotal() /1000) add " kilobytes loaded.";
if ( _parent.getBytesTotal() == _parent.getBytesLoaded()) {
_parent.gotoAndStop("2");
}
}
Last edited by jmichels : January 21st, 2004 at 03:07 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Loading counter |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|