// Decompiled by AS3 Sorcerer 6.78
// www.buraks.com/as3sorcerer

//scpacker.gui.GTanksI

package scpacker.gui
{
    import flash.display.Bitmap;
    import sineysoft.WebpSwc;
    import flash.utils.ByteArray;
	    import flash.display.BitmapData;
	import scpacker.resource.*;

    public class GTanksI implements GTanksLoaderImages 
    {

        private var coldload1:Class = GTanksI_coldload1;
        private var coldload2:Class = GTanksI_coldload2;
        private var coldload3:Class = GTanksI_coldload3;
        private var coldload4:Class = GTanksI_coldload4;
        private var coldload5:Class = GTanksI_coldload5;
        private var coldload6:Class = GTanksI_coldload6;
        private var coldload7:Class = GTanksI_coldload7;
        private var coldload8:Class = GTanksI_coldload8;
        private var coldload9:Class = GTanksI_coldload9;
        private var coldload10:Class = GTanksI_coldload10;
        private var coldload11:Class = GTanksI_coldload11;
        private var coldload12:Class = GTanksI_coldload12;
        private var coldload13:Class = GTanksI_coldload13;
        private var coldload14:Class = GTanksI_coldload14;
        private var coldload15:Class = GTanksI_coldload15;
        private var coldload16:Class = GTanksI_coldload16;
        private var coldload17:Class = GTanksI_coldload17;
        private var coldload18:Class = GTanksI_coldload18;
        private var coldload19:Class = GTanksI_coldload19;
        private var coldload20:Class = GTanksI_coldload20;
        private var coldload21:Class = GTanksI_coldload21;
        private var coldload22:Class = GTanksI_coldload22;
        private var coldload23:Class = GTanksI_coldload23;
        private var coldload24:Class = GTanksI_coldload24;
        private var prev:int;


        public function getRandomPict():Bitmap
        {
		   var glloader:String;
		   var gtTexture:BitmapData;
		   switch (glloader)
            {
                case "loader_img_1":
                    gtTexture = ResourceUtil.getResource(ResourceType.IMAGE, (glloader)).bitmapData;
                    break;
                default:
            };
			var items:Array = new Array(gtTexture, coldload2, coldload3, coldload4, coldload5, coldload6, coldload7, coldload8, coldload9, coldload10, coldload11, coldload12, coldload13, coldload14, coldload15, coldload16, coldload17, coldload18, coldload19, coldload20, coldload21, coldload22, coldload23, coldload24);
            var r:int;
            do 
            {
            } while ((r = (Math.random() * items.length)) == this.prev);
            return (new Bitmap(WebpSwc.decode((new (items[r])() as ByteArray))));
        }


    }
}//package scpacker.gui

как вот это переделать             var r:int;
            do 
            {
            } while ((r = (Math.random() * items.length)) == this.prev);
            return (new Bitmap(WebpSwc.decode((new (items[r])() as ByteArray))));
        } переделать под  		   var glloader:String;
		   var gtTexture:BitmapData;
		   switch (glloader)
            {
                case "loader_img_1":
                    gtTexture = ResourceUtil.getResource(ResourceType.IMAGE, (glloader)).bitmapData;
                    break;
                default:
            };