karlzoe2
12-05-2002, 11:38 PM
this script came from jesse's presentation on preloaders
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 1) {
gotoAndPlay("Scene 1", 1);
}
when i was doing mine IN NORMAL so i can better understand where the actions came from etc... when i came to this action
bar.gotoAndStop(percent_done);
i typed it in ... HOWEVER in mine it identified bar as an object but in jesse's it was an expression
I searched and could not identified how to select the box to just type in expressions.
secondly this aspect of the code:
ifFrameLoaded ("Scene 1", 1) {
i had to type it in EXPERT MODE because i did not know where to find it under normal mode.
i know this is long and winded and i am adding to it but could someone shed some light on the above for me please
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 1) {
gotoAndPlay("Scene 1", 1);
}
when i was doing mine IN NORMAL so i can better understand where the actions came from etc... when i came to this action
bar.gotoAndStop(percent_done);
i typed it in ... HOWEVER in mine it identified bar as an object but in jesse's it was an expression
I searched and could not identified how to select the box to just type in expressions.
secondly this aspect of the code:
ifFrameLoaded ("Scene 1", 1) {
i had to type it in EXPERT MODE because i did not know where to find it under normal mode.
i know this is long and winded and i am adding to it but could someone shed some light on the above for me please