class Loading extends MovieClip { var bar_mc, track_mc; function Loading() { super(); bar_mc._width = 0; } // End of the function function update(loaded) { bar_mc._width = Math.round(loaded * track_mc._width); } // End of the function function resize(newWidth) { var _loc2 = newWidth / track_mc._width; track_mc._width = newWidth; bar_mc._width = bar_mc._width * _loc2; } // End of the function } // End of Class