I have made a custom class. This class should load an image depending on the parameter that is send to it. I managed to make it work with an external image; however, how would I go for doing it with an image from the library
public class block extends flash.display.MovieClip
public function block(blockX:int, blockY:int, id:int, material:int)
// Load image depending upon parameter here.
And no, this is not MineCraft , believe it or not =P (not even close). I just somehow got to use the same terms as they are used there. And for some random reason my code is pretty much exactly the same as MineCraft's. But anyways, any help would be appreciated.