1 Reply Latest reply on Jan 28, 2008 7:08 AM by kglad

    Instance of a Bitmap programatically


      I fairly new to ActionScript. I think this question is pretty simple but I can' find a simple answer to it.

      I have a flash file. I have a class called Screen. In Screen I want three properties: Image1, Image2, Image3. These image properties are representative of three bitmaps already in my flash file. How do I just create instances of them? And once they are initialised what type are they? Are they BitmapData?

      If I can't do this, I am happy to load the images from an external folder. How could I do this?

      I want to be able to just pass as a parameter the image instance and screen holds a reference to it. How can I create this instance though in the first place?