9 Replies Latest reply: Jan 13, 2011 4:40 PM by Andrei1 RSS

    How to refer to a Class linkage set in Library from external code?

    Grime-P Community Member

      If one uses [Embed] to refer to external graphic assets its easy to instantiate and use them.

      However, I've got a png in an Fla, with the Class identifier set to "Symbols", Base class is BitmapData.

       

      I need to instantiate it like this:

      var symbols:BitmapData = new Symbols(1, 1);

       

      addChild(new Bitmap(symbols));

       

      Of course the compiler complains about a call to a possibly undefined method Symbols.

      For a temporary fix I guess i'll put the graphic external to the swf, but for this project it needs to be in the library along with everything else.