import mx.controls.Alert;
protected function sampleOpenHandler(event:Event):void {
Alert.show('open');
}
protected function sampleProgressHandler(event:ProgressEvent):void {
Alert.show(event.bytesLoaded+' of '+event.bytesTotal+' bytes loaded');
}
protected function sampleCompleteHandler(event:Event):void {
Alert.show('complete');
}
open="sampleOpenHandler(event)"
progress="sampleProgressHandler(event)"
complete="sampleCompleteHandler(event)"/>