two things:
1. Desktop and AE behaves differently when unloading a texture.
TextureManager tm = TextureManager.getInstance();
tm.addTexture("box", new Texture("box.jpg"));
tm.unloadTexture(buffer, tm.getTexture("box"));
tm.addTexture("box", new Texture("box.jpg"));
this code creates an error on desktop, saying texture 'box' has been declared twice. it runs okey on AE
2. on Desktop, after removing/unloading and re-adding, we end up with a white texture
TextureManager tm = TextureManager.getInstance();
tm.addTexture("box", new Texture("box.jpg"));
tm.removeAndUnload("box", buffer);
tm.addTexture("box", new Texture("box.jpg"));