Actionscript problem...
I'm attempting a preloader which is usually god-easy but for some reason,
_root.getBytesLoaded()
stays constant at 70929... and
_root.getBytesTotal()
is 248961...
Here's my actionscript, it's the only actionscript present anywhere in the preloader and it's on a seperate layer of the main timeline.
(Disregard the <?php ?> tags, if I use the code tags it doesn't color or indent...)
PHP:<?php
var_percent = 0;
while (var_percent<99) {
var var_loading = _root.getBytesLoaded();
var var_total = _root.getBytesTotal();
var var_percent = var_loading/var_total;
trace(var_loading);
trace(var_total);
trace(var_percent);
mc_loadBar._width = var_percent*200;
if (var_percent>99) {
_root.gotoAndStop(5);
}
}
?>
___________________
"Sam says : Die!"
