Ok, Im a complete noob when it comes it this:
I know this is probably a easy change but i can’t seem to figure it out.
I want the code below to start playing at 25% and continue loading as it plays, please help:
Frame 1 AS:
bytestotal = getBytesTotal();
ON A MOVIE CLIP:
onClipEvent(enterFrame){
_root.bytesloaded = _root.getBytesLoaded();
_root.percentloaded = Math.round(100*(_root.bytesloaded/_root.bytestotal));
if(_root.bytesloaded == _root.bytestotal)
{
_root.play();
}
setProperty(_root.loadingbar,_xscale,_root.percent loaded);
}
Thanks in advanced.