 package org.mangui.hls.loader {
     import flash.utils.getTimer;
 
+    import org.mangui.hls.HLS;
+    import org.mangui.hls.HLSSettings;
     import org.mangui.hls.controller.AudioTrackController;
     import org.mangui.hls.controller.LevelController;
-    import org.mangui.hls.HLSSettings;
-    import org.mangui.hls.event.HLSLoadMetrics;
     import org.mangui.hls.constant.HLSTypes;
-    import org.mangui.hls.flv.FLVTag;
+    import org.mangui.hls.demux.Demuxer;
+    import org.mangui.hls.demux.DemuxHelper;
     import org.mangui.hls.event.HLSError;
     import org.mangui.hls.event.HLSEvent;
-    import org.mangui.hls.demux.Demuxer;
-    import org.mangui.hls.demux.DemuxHelper;
+    import org.mangui.hls.event.HLSLoadMetrics;
+    import org.mangui.hls.flv.FLVTag;
     import org.mangui.hls.model.AudioTrack;
-    import org.mangui.hls.HLS;
     import org.mangui.hls.model.Fragment;
     import org.mangui.hls.model.FragmentData;
     import org.mangui.hls.model.FragmentMetrics;
     import org.mangui.hls.model.Level;
+    import org.mangui.hls.stream.StreamBuffer;
     import org.mangui.hls.utils.AES;
-    import org.mangui.hls.stream.StreamBuffer;
 
     import flash.events.*;
     import flash.net.*;

        private var _levelController : LevelController;
        /** reference to audio track controller */
        private var _audioTrackController : AudioTrackController;
        /** has manifest been loaded **/
        private var _manifest_loaded : Boolean;
        /** has manifest just being reloaded **/
        private var _manifest_just_loaded : Boolean;
        /** last loaded level. **/

        /** Store the manifest data. **/
        private function _manifestLoadedHandler(event : HLSEvent) : void {
            _levels = event.levels;
            _loading_state = LOADING_IDLE;
            _manifest_just_loaded = true;
        };

