0 Replies Latest reply on Feb 22, 2010 1:57 PM by bchalupka-syPD9H

    Problem with FXG files in a library




      I wanted to create a graphical library with some symbols to be reused in several applications. To do this I created several FXG files and a class that saves them in a Vector.<Class>. But if I try to access this vector and create instances of the classes sometimes sprites with no content (width and height = 0) are created. If I create a Vector with actual sprites and get their class by using getDefinitionByName(getQualifiedClassName(sprite)) it works perfectly (but I think its a waste of memory and performance).


      Is there a better approach?

      Thanks in advance.