HI,
I have a dial looking preloader and everything works great.
But have a second dial within the main dial that I want to use for an active connection speed test.
I know how to do it so that it calculates it at the end of the preloader, but how do I do an active one?
Any help would be great
Thanks in advance
[AS]
/////////////////////////////////////////////////////////////////////
stop();
/////////////////////////////////////////////////////////////////////
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoading);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
/////////////////////////////////////////////////////////////////////
function onLoading(evt:ProgressEvent):void {
var loaded:Number = evt.bytesLoaded/evt.bytesTotal;
_percenttxt.text = " " + String (Math.round((loaded)*100)) + “%”;
hand1.rotation = (Math.round((loaded)*360))-90;
gotoAndStop(Math.round((loaded)*100));
}
/////////////////////////////////////////////////////////////////////
function onComplete(event:Event):void {
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onLoading);
this.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
play();
}
/////////////////////////////////////////////////////////////////////
[/AS]