# Active connection speed

**URL:** https://forum.kirupa.com/t/active-connection-speed/332012
**Category:** flash
**Created:** [December 28, 2013, 8:59pm UTC](https://forum.kirupa.com/t/active-connection-speed/332012 "2013-12-28T20:59:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scottiescotsman](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@scottiescotsman](https://forum.kirupa.com/u/scottiescotsman)
#### Post date: [December 28, 2013, 8:59pm UTC](https://forum.kirupa.com/t/active-connection-speed/332012/1 "2013-12-28T20:59:37Z")

</div>

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]
