Find where Actionscript class is loaded from

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.

No official API, but there is a getSWFRoot on SystemManager that might help.

Similar Messages

  • Find where a class is loaded from

    Hi
    How do I find out programmatically where a class is being loaded from.
    For ex:
    I want to know where the java.rmi.Naming class is being loaded from. I thought it was from the rt.jar file. I deleted the Naming.class and 2 other anonymous inner classes of Naming class from rt.jar. When I do Class c = Class.forName("java.rmi.Naming"); it still works.
    TIA
    Sankar

    check this out:
    http://www.javaworld.com/javaworld/javatips/jw-javatip105.html
    "The Java classpath has always been a source of frustration and confusion, despite its seemingly simple concepts. This article demonstrates a simple tool for unambiguously identifying which Java class in your classpath the class loader will load."

  • Find out where class was loaded from

    Is there a way to find out from what resource the java runtime loaded a class from? I know that -verbose:class argument will tell where classes were loaded from during runtime for only normal sun libs (core libraries from rt.jar), but it does not say where it is loading external stuff from. Can this be found out?
    For example, if a particular third party class is available several times (through accidental redundancy in classpaths)-- find out which resource it was taken from.
    I am sure you could get down into the weeds and look thorugh all the classpath entries for which ones contain which classes-- but there has got to be a better way.

    import java.io.File;
    import java.net.JarURLConnection;
    import java.net.URL;
    import java.net.URLDecoder;
    private File getPathToClass(Class c)
         try
              URL url = getClass().getResource(c.getName() + ".class");
              if( url.getProtocol().equals("jar") )
                   JarURLConnection jarCon = (JarURLConnection)url.openConnection();
                   url = jarCon.getJarFileURL();
              File file = new File(URLDecoder.decode(url.getPath(), "UTF-8"));
              return file;
         catch(Exception e)
              return null;
    }

  • Where do Pipeline Component classes get loaded from?

    Can someone please point me to some documentation that describes where my Pipeline
    Component classes get loaded from?
    I have just wasted hours on this - to find that they are not loaded from WEB-INF/classes
    - but instead they must be available to the EJB classloader. The sampleportal
    is completely misleading in putting the classes in WEB-INF/classes - because they
    are in fact loaded from the sampleportal EJB jar!
    Did I miss something obvious?
    regards,
    Nick

    Nick
    Refer to this portal doc on dev2dev
    ftp://edownload:[email protected]/pub/downloads/webflow.doc
    -tulan
    "Nick Minutello" <[email protected]> wrote
    in message news:[email protected]..
    >
    >
    Can someone please point me to some documentation that describes where myPipeline
    Component classes get loaded from?
    I have just wasted hours on this - to find that they are not loaded fromWEB-INF/classes
    - but instead they must be available to the EJB classloader. Thesampleportal
    is completely misleading in putting the classes in WEB-INF/classes -because they
    are in fact loaded from the sampleportal EJB jar!
    Did I miss something obvious?
    regards,
    Nick

  • Detecting if class is loaded from jar?

    is this possible?

    because my current app, stupid or not, tries to save a
    file in the directory where the class is located. But
    if its a jar, it cant save it there!?No, you cannot write something into a jar file. To do that you have to create a new version of the jar file, copy all the jar entries from the old version, and add a new jar entry for the new something you want to add, then delete the old version and rename the new version back. Apart from being cumbersome, this will probably not work in your case because the JVM will have a lock on the jar file containing your classes. So if you have a configuration file that can be changed by the program, you don't want to store it in a jar file.

  • Classes not loaded from cached JAR ???

    I am running an applet package in jar files using the 1.4.1 plug-in.
    The plug-in is set to cache the JAR file(s) downloaded from the web site, and output in the plug-in console indicates that these JARs are downloaded an cached successfully. I noticed that there is a lot of network traffic as the user is interacting with the applet. After I turned plug-in tracing on, I noticed that the plug-in is accessing the server (where the jar files are downloaded from) every time it needs to load a class or resource!
    The java console contains trace outputs of the form:
    Connecting http:[myserver]/someclass.class with no proxy
    Connecting http:[myserver]/someclass.class with cookie "JSESSIONID=..."
    The applet sometimes freezes until a given class can be accessed over the network!
    Does anyone have any idea why the applet keeps going back to the server for classes and resources through they are contained in the downloaded and cached JAR file?

    I do have the archive tag, but not the cache_archived. In fact the html page contains the following:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "100%" HEIGHT = "100%" ID = "myApplet"
    codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = "CODE" VALUE = "appletclass.class" >
    <PARAM NAME = "ARCHIVE" VALUE = "myjar.jar"
    <PARAM NAME = "MAYSCRIPT" VALUE = "true" >
    <PARAM NAME = "type" VALUE="application/x-java-applet;version=1.3.1">
    <PARAM NAME = "scriptable" VALUE="true">
    </OBJECT>
    As far as I can tell the jar file is downloaded only once. It's when the classes (in the jar) are accessed that the applet goes back to the servlet!

  • How to find where the data is coming from in appended field for BW extract

    I am not an ABAP'er ... And this problem is about a BW Extractor
    I am extracting data for my (Utility Industry) Sales Statistics Cube using 0UC_SALES_STATS_01 data source. The Extract structure is BIW_ISU_ESTA and we are appending the structure with a few fields:
    I_ZAHL1
    I_ZAHL2
    I_ZAHL3
    I see some similar fields in DBERCHZ1 which are not the same. The data gets filled in the above fields somehow. I need to find out how and where. We have now diffrent variation of the same data and I'd like to extract that transactional data as well using the same fields rather than appending more fields to an already huge extract structure. When I click on the fields in BIW_ISU_ESTA, it takes me no where. I also tried out the extractor program (RSA3) in debug mode but somehow the fields are already populated. I tried using the ABAP dictinary but can't find a way to find these fields there.
    Any help would be appreciated.
    Thanks a lot.
    Bilal

    Thanks Renata,
    This is a standard business content extractor with the fields enhanced. Usually we have some user exits to populate the fields but in this case we only append the extract table. I couldn't see these fields being part of any existing includes in the extract struct but some how they get populated. I guess system knows from where to copy the data.
    Thanks for your reply though. I am closing this thread as it seems not a very popular cube.
    Bilal

  • Can´t find where to download Robodemo 5 from.

    I had Robodemo 5 installed on my PC but a virus crashed my
    hard disk. Now that I follow the link I received with my e-purchase
    http://global.ehelp.com/robodemo/5/full/eLearning.exe)
    I find out is no longer available. Any idea where I can get the
    file from so that I can reinstall it on my PC? Thanks in advance
    for any help you can provide.

    Hello jcarlos,
    This download is still available, but in a different
    location. Please contact our customer service group and they will
    point you to it. The phone number is listed here:
    http://www.adobe.com/support/programs/captivate/index.html?tab:contact=1
    (bottom left corner).

  • Need to find where to retrieve conditon types from sales orders

    Sorry if this should be under data dictionary.
    I am trying to find out how to retrieve the pricing elements from the sales order/invoice. The ultimate goal is to create a list of all customer/materials that were purchased with a certain condition type.  From the condition tab of the sales order, the technical information shows the sturcture KOMV and field name KSCHL for the condition type column.
    Thanks for any help!
    Rick

    Halo Richard,
    The table name is KONV .
    If you are looking out for relating Purchasing side with KONV table , then  EKKO/EKPO tables have KNUMV which has corresponding foreign key entries in KONV table also
    If you are looking out for relating Sales side with KONV table , then  VBAK/VBRK  tables have KNUMV which has corresponding foreign key entries in KONV table also
    Regards
    Arshad

  • Where is a website loaded from iWeb 08 to .Mac stored ? Mac or Online

    Is a website I make in iWeb 08 and load onto the web with .Mac stored online or on my computer - ie. do I have to remain online for others to view my site?
    Thanks

    If you use the Publish button or Publish to .Mac menu, your site is put on your iDisk at .Mac. Whether your computer is operating or online doesn't matter once that is done.

  • Can I find where someone downloaded stolen items from my iCloud?

    It appears that I must have been careless with my Apple ID and password because someone used them to purchase an iTunes item that was downloaded and then tucked into my iCloud. Is there a way to track where it was downloaded?

    No.  Anyone with your AppleID and password can use your account.  The purchases will show in your account history in iTunes, but there is no way to know who made them or what device made them.  All you know is they were made with your account and nothing more.
    You should change your AppleID password pronto, and keep it strictly private.

  • Where are classes loaded from ?

    How can I find out programmatically the url where a class is loaded from ?
    Something like the info given by "java -verbose:class MyApp".
    I don't see any method doing this in the class Classloader...
    Any idea ?

    Haven't tried it, but what about trying URL wheresMyClass = ClassLoader.getSystemResource("myPackage.myClass") ?

  • How to find where an import item will come from for auto execute query?

    I am trying to get a standalone stackLayout region to automatically execute the query on a VO when I run a test.
    I found this thread, Re: Table creation and Data Population and tried adding the suggested code into my <companyname>.oracle.apps.fnd.framework.toolbox.server.<companyname>WorklistAMImpl. java, without the "if" clause wrapper.
    if(pageContext.getParameter("Submit") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject vo = (OAViewObject)am.findViewObject("EmployeeVO1");
    OATableBean table = (OATableBean)webBean.findChildRecursive("ResultTable");
    table.queryData(pageContext, false);
    However, when I try to compile, I get errors that the variable webBean, variable pageContext, and class OATableBean are not found in my class <companyname>.oracle.apps.fnd.framework.toolbox.server.<companyname>WorklistAMImpl. I had a couple others missing classes, which I figured out where they were and included them as imports.
    My questions are:
    1. Did I put this code in the right place?
    2. How do I find out where the OATableBean exists (and generically, how do I find where a class exists, for future reference)?
    3. In the case of the referenced note, how should I define the webBean and pageContext variables?
    Thanks.
    - Pam

    I found where the OATableBean was defined, but I'd still like to know in general how to find classes. Is there a utility I can run that would list what's where?
    Also, I figured out for the webBean and pageContext that I needed to import OAwebBean and OApageContext and then define the parameters in stream, so onw I'm successfully compiling; however, I still get "No search conducted" on the test rather than actually seeing the results of the VO. So, I sitll wonder if I have the code in the right place, or am I missing another piece? For instance, since my VO is based on a multi-org view, do I need to do something similar to set_client_info? Even if I did have to do that, I would expect a no data found rather than a no search conducted message.
    The view code is as follows (note, I have commented out the bind variable for now and hard coded which distribution I want to find, so I expect it to get one row returned):
    SELECT ReqDistributionsEO.DISTRIBUTION_ID,
    ReqDistributionsEO.DISTRIBUTION_NUM,
    ReqDistributionsEO.REQ_LINE_QUANTITY,
    ReqDistributionsEO.REQ_LINE_AMOUNT,
    ReqDistributionsEO.EXPENDITURE_TYPE,
    ReqDistributionsEO.EXPENDITURE_ITEM_DATE
    ,prl.line_num
    ,pp.name project_name
    ,pt.task_number
         ,gcc.concatenated_segments
    FROM PO_REQ_DISTRIBUTIONS ReqDistributionsEO
    ,po_requisition_lines prl
         ,pa_projects pp
         ,pa_tasks_v pt
         ,gl_code_combinations_kfv gcc
    where ReqDistributionsEO.REQUISITION_LINE_ID = prl.REQUISITION_LINE_ID
    and prl.requisition_header_id = 14247-- :1
    and pp.project_id = ReqDistributionsEO.project_id
    and pt.task_id = ReqDistributionsEO.task_id
    and gcc.code_combination_id = ReqDistributionsEO.code_combination_id
    Please help.

  • Finding Where a File Comes From (ipcam.log)

    I installed some software on my Mac to use the camera as an IP Cam to view online. I deleted it from the Applications folder as I do with any other application. However, it has left something behind, a log file keeps appearing in my Documents folder ipcam.log. I can't for the life of me find where this file is coming from and the application had no 'uninstall' application either. Thus, if I can find out what process or script is creating the file I could look into stopping it. Any help? How do I go about this?

    Hi and Welcome to Apple Discussions...
    Open Activity Monitor (Applications/Utiliteis). From the pop up menu on the right click My Processes.
    You might be able to find information about the ipcam there.
    AppDelete is a great utility for removing files associated with applications.
    Carolyn

  • How is data loaded from Infocube to Planning area - need technical info

    I would like to find out how data is loaded from cube to planning area ,
    I know that CUBE has tables, but how does that get loaded to planning area , where is the mapping from which I can compare
    data in CUBE and the same data that reaches planning area.
    Say for example I have below values in the infocube
    Prod1 --> Loc1 -
    > available provisioning qty
    AAA        AB90             100
    Then where do i check in the planning area tables ( are there any tables mapped) after running the TSINPUT program, i know it can be checked in the planning book , but i want to check in planning area tables if they exi

    Hi ,
    The data is loaded from infocube to planning area using update rules. The issue you have mentioned seems to be two requests are having data for the same CVCs in the cube.
    Example: For the same CVC, two requests avilable in the infocube. When you copy the data using TSCUBE transaction, whatever data avilable in the cube for the CVC gets copied into Planning Area.
    CVC1 - cube - Old Request - 100
    CVC1 - cube - Actual Request - 200
    CVC1 - Planning Area = 300 ( The value is supposed to be 200, but since the old request also contains data in the cube for the cvc, it gets copied as 300)
    Issue : There might two request contains data for the same code
    Solution : 1. Check the data in the cube using transaction LISTCUBE  2.  Delete old request and check the data agian. 3. If it matches with your requirement, run the TSCUBE again.
    Please let me know if you need additional information.
    Thanks,
    Jeysraj

Maybe you are looking for

  • For all the newbies who wants to learn Java

    I was a newbie like 4 months ago. i have some skills of OOP in C++ like 2 years back but since then i did'nt took any of programming language courses. I have experience in MSaccess and MYsql. i did my internship Last summer with Tennessee Education L

  • Connecting ipod video to mac and windows???

    I have recently purchased an ipod video, i have two computers, one mac and one windows, the mac has my music on and the windows has ripped dvd's on which can be converted to ipod video compatible files. can i connect my ipod to both computers and add

  • HP 2009m Monitor

    I recently purchased this HP 2009m monitor. When setting it up the information on the setup menu states that my version is 1024x 768 60hz recommended version is 1600x900 60 hz. I did go to the control panel and display then settings and changed the s

  • Problem creating a hierarchical tree in forms builder[issue with the query]

    Hi all, I have 2 tables. box (box_id, box_name) item(item_id, item_name, box_id) In a box there are several items. I want to create a hierachical tree to display items that are present in each box. LIKE: |---BOX1 | |----ITEM 1 | |----ITEM 2 | |---BOX

  • JButton - avoid color change when clicked

    Hello All, probably this is a simply question, but i didn't find the answer. I have some JButtons in my window. When they are clicked, they change their background color for a momement (normal behavior). This is what I want to avoid. How could I do t