1 Reply Latest reply on Feb 2, 2011 10:01 AM by Flex harUI

    Find where Actionscript class is loaded from

    gags_78

      Hi folks,

       

                Is there anyway to tell where an actionscript class is loaded from (i.e. what swf file) at runtime? I've had a look at some of the reflection api's and some of the sample code but none seem to address this. I'm originally a Java developer and this is a fairly straightforward call. For any java developers who may be viewing this if I may I'll put in the java for which I'm looking for the equivalent actionscript if possible.

       

      Thread.currentThread().getContextClassLoader().getResource("java/lang/String.class").getPa th();

       

      This will give me the location jar/folder path from where the String class is loaded for the particular thread.

       

      Any help would be greatly appreciated,

      Mark.