Jeff dePascale Blogging on and developing web and mobile technologies

Prequel upgraded to .96 – now with bandwidth detection

As of the .96 release just pushed to google code, Prequel now features optional bandwidth detection. Implemention alongside Prequel:

import com.jeffdePascale.prequel.*;

var preload:Prequel = new Prequel();
var bandwidth:BandwidthDetection = new BandwidthDetection(preload);
bandwidth.addEventListener(BandwidthEvent.BANDWIDTH, eBandwidthHandler);
preload.preload([this]);

function eBandwidthHandler(e:BandwidthEvent):void{
trace("bandwidth: " + e.bandwidth + " kbps");
trace("seconds: " + e.seconds);
}

Share This
  • LinkedIn
  • Facebook
  • Twitter
  • Digg
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • email
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.