1 Reply Latest reply on May 9, 2008 6:42 AM by dubbelugh2

    Display dynamic classNames (images) from .swc


      My problem: I use a .swc file which contains X images (Image1, Image2, Image3, etc...) with the same classnames (export for ActionScript). Now, in my as3 project in Flex I want to display these images with the code below.

      This code doesn't work but....it does work when I declare a variable like this:
      var image1:Image1;

      Now the Image1 class exists and the image will be displayed.
      As you can guess, I want to know an other way to do this. I don't want to declare all possible image variables before they can be used, I want to keep it dynamic.

      Hope somebody can help!