Created
November 26, 2015 08:02
-
-
Save kolombet/021398488d79080492d2 to your computer and use it in GitHub Desktop.
GOVNOCODE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (_chain[0][4] != null) | |
{ | |
createCompressedImage(_chain[0][0], _chain[0][1], _chain[0][2], _chain[0][3], _chain[0][4]); | |
_chain.shift(); | |
return; | |
} | |
var current:AssetsLibrary = _chain[0][0]; | |
if (_chain[0][4] != null) | |
current.parseData(ByteArray(new _chain[0][1]()).readObject()); | |
else | |
current.parseData(JSON.parse(String(new _chain[0][1]()))); | |
var names:Array = _chain[0][3]; | |
var textures:Array = _chain[0][2]; | |
for (var i:int = 0; i < names.length; i++) | |
{ | |
var source:* = new textures[i](); | |
var name:Array = names[i].split("."); | |
var textureName:String = name[0]; | |
var textureFormat:String = name[1]; | |
current.setAtlasTexture(textureName, source); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment