Determine connec. speed with MX

I wish to create a bit of actionscript that will automatically redirect the use to a low or high bandwidth side…

i image i should a load small .swf into my movie and calculate the time it took to load with getTimer() or something such as…
Does anybody here know how to or has done such a script??

thnx !!!