Call function or class from a loaded MC

Hi,
Can anyone tell me if its possible to call a function or class from within a loaded MC?
mainMovie loads MC > MC calls function in a class of mainMovie
if so, what is the best method?
I've tried this from loaded MC but (of course) an error pops:
movieClip(parent.parent).DO_THIS();
Thanks for any "light" on this.

It works fine!
I'll try now to "sniff" into some class in main movieClip...
Thanks

Similar Messages

  • Calling a Java Class from PL/SQL

    Hai,
    I need a technique of calling a class file and invoke its
    methods written in Java by PL/SQL for my intranet development.
    PLease let me know if you have really experienced and won.
    Thanks
    JOhnson

    First, to call a Java class from PL/SQL the class needs to be
    deployed to the database. you can check the 8i documentation for
    the instructions for loading Java into the database(LoadJava).
    The document contains information on how to load the Java and
    call it from PL/SQL. The following links should help.
    Loading Java:
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
    java.817/a83728/03write6.htm
    Invoking a Java Method in the database:
    http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/
    java.817/a83728/04jserv2.htm
    Gary (JDev Team)

  • I want to call External Java class from the PL/SQL

    Hi,
    I am using Oracle Apps R11i (11.5.7), I wanted to call external Java class from the PL/SQL. This external Java class is residing in another application server.
    How do I do this.
    I know one way. Develop C routine in Oracle Apps to call external java class and call this C routine from the PL/SQL.
    Is there any simple method available? or any other method?
    Thanks in advance.
    -Venkat

    First of all, this is a Java application you're talking about, right (i.e. it has a main() function)? It's not just a class that you're trying to instantiate is it? If it's an application, you obviously have to start a new virtual machine to run it (rather than using the virtual machine built into the database like stored java). I'm a little leary of your mention of an "application server" as this would more commonly mean that a virtual machine is already over there running with access to this class. In which case, you'd typically interface with SOAP or some other RPC API.
    All that aside, as long as you have physical disc access (through NFS or whatever) to the class file, you could use a java wrapper class with a system call to do this. In fact, there is a thread in just the last day or so on this very forum that has the code to do just that (see " Invoking OS Commands from PL/SQL"). However, it's worth noting that the virtual machine will be running on the database server in this case and not the application server.

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • Calling my Java class from JSP page

    Hello, I am trying to call my Java class from my JSP page passing parameters to it and getting back a collection of result sets. Can someone tell me what I might be doing wrong:
    JSP code to call Java class:
    <%
    String strEssUser = "test";
    String strProcessingMonth = "JUL";
    String strProcessingYear = "2002";
    strQueryList=new ListReturn(strEssUser.toString(), strProcessingMonth.toString(), strProcessingYear.toString());
    %>
    I get this error when I try to run this JSP page using tomcat:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\em\jsp\Test_0005fSummarySBU_0005fscreen$jsp.java:77: Class org.apache.jsp.ListReturn not found.
    strQueryList=new ListReturn(strEssUser.toString(), strProcessingMonth.toString(), strProcessingYear.toString());
    I'm not sure if this problem is the way I am calling the Java class, or if I have a problem in the Java code itself. Can anyone help?

    Ok, I get a very strange error now:
    org.apache.jasper.JasperException: Unable to compile class for JSPerror: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).
    What is this??? Anyone?

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • How sholud we call one jframe class from another jframe class

    Hi
    In my application i am calling one jframe class from another jframe clas.
    how sholud we make previous jframe inactve when another jframe is invoked?(user sholud not able to make any changes on on parent jframe window when another jframe is invoked)
    Pls reply.

    Sorry for me it is not possible to change existing code,
    pls suggest me any other solution so that i can inactive parent jframe when child jframe execution is going on.

  • How to: Calling a java class from asp?

    Hello all i have a problem to call a Java class from a asp
    Here what I do:
    [JavaSays.java]
    package JavaCom;
    public class JavaSays
    public String Hello()
    return "Hello world" ;
    then
    javareg /register /class:JavaCom.JavaSays /progid:JavaCom.JavaSays
    md c:\winnt\Java\TrustLib\JavaCom
    copy JavaSays.class c:\winnt\Java\TrustLib\JavaCom
    --Asp
    --TestJavaCom.asp
    <html>
    <body>
    <h1>Simple Test</h1>
    <% Set ObjPrueba = Server.CreateObject("JavaCom.JavaSays") %>
    <%= ObjPrueba.SimpleFn(5) %>
    <hr>
    </body>
    </html>
    when i try to run my asp
    it tell me that:
    Error type : Server Objetc, ASP 0177 (0x80040111)
    ClassFactory can not find the class
    any idea???
    thanks.

    I think the OP wants to use a class file as a COM object. I've never done that, but this URL:
    http://support.microsoft.com/default.aspx?scid=KB;EN-US;q167941&
    seems to indicate that you should have placed the class file into the c:\winnt\Java\TrustLib\ sub directory before you ran the JAvaReg bat file - I would re-run JavaReg and bounce IIS and associated services and see if that works out.
    Good Luck
    Lee

  • Calling a java class from asp

    Hello all i have a problem to call a Java class from a asp
    Here what I do:
    [JavaSays.java]
    package JavaCom;
    public class JavaSays
    public String Hello()
    return "Hello world" ;
    then
    javareg /register /class:JavaCom.JavaSays /progid:JavaCom.JavaSays
    md c:\winnt\Java\TrustLib\JavaCom
    copy JavaSays.class c:\winnt\Java\TrustLib\JavaCom
    --Asp
    --TestJavaCom.asp
    <html>
    <body>
    <h1>Simple Test</h1>
    <% Set ObjPrueba = Server.CreateObject("JavaCom.JavaSays") %>
    <%= ObjPrueba.SimpleFn(5) %>
    <hr>
    </body>
    </html>
    when i try to run my asp
    it tell me that:
    Error type : Server Objetc, ASP 0177 (0x80040111)
    ClassFactory can not find the class
    any idea???
    thanks.

    any idea???Yes, you are in the wrong forum, this is a Java forum, you have an ASP question, so i suggest you visit an ASP forum/site

  • Problem Calling a Java class from PLSQL function

    We are calling a Java class through oracle function as
    FUNCTION CalculateAMW (contributorid IN Number,
    fromdate IN Date,OHorAnncoverage in Number,
    OHAnncoverage in Number,
    AppStatus in Number,
    Status in Number)
    RETURN Number
    AS LANGUAGE JAVA
    NAME 'AMWCalculations.calculateAMW
    (long,java.sql.Timestamp,long,long,long,long) return double';
    on execution of this function the sql prompt for the 1st time it is giving the output
    but
    if reexecute it is throwing and error ORA - 932 : Inconsistent
    datatypes.
    Recompiling the java class then it works for the 1st time and the next
    time
    we execute it throws error as explained above.
    What could be the problem.
    Thanks
    Nanda Kishore

    any idea???Yes, you are in the wrong forum, this is a Java forum, you have an ASP question, so i suggest you visit an ASP forum/site

  • Calling Function across Classes

    How do I call a function across classes?
    I have a primary class ("ChordLib.as") that contains a function that manages options for TileList component, that includes prescribing a custom Cell Rendering class, "MyRenderer".  I want to be able to call a function in the primary "ChordLib.as" class from the "MyRenderer.as" class.  Here is the function in "ChordLib" that refers to the "MyRenderer" class. Perhaps there is a way here to pass reference of the primary class into "MyRenderer"?
    // SET CHORD LIST  //////////////////////////////////////////
    public function setChordList(song:int):void {
    var dpChords:DataProvider = new DataProvider();
    var i:uint;
    // determine chord set
    if (song == -1) {
         activeChords = allChords;
    } else {
         activeChords = songChordSets[song];
    // fill dataProvider
    for(i=0; i<activeChords.length; i++) {
         var tt = activeChords[i];
         dpChords.addItem({ label:tt, source:ChordBar, data:i, scaleContent:true }); 
    chordList.dataProvider = dpChords;
    chordList.columnWidth     = 70;
    chordList.rowHeight     = 30;
    chordList.direction = ScrollBarDirection.VERTICAL;
    chordList.setStyle("contentPadding", 5);
    chordList.setRendererStyle("imagePadding", 0);
    chordList.scrollPolicy  = ScrollPolicy.ON;
    // set style for labels
    chordList.setRendererStyle("textFormat", textFormat1);
    // set the background skin
    chordList.setStyle("skin", lightBackground);
    //set the cell renderer
    chordList.setStyle("cellRenderer", MyRenderer);
    This last line ("chordList.setStyle("cellRenderer", MyRenderer);") refers to this custom class, that includes some event listeners:
    package {
       import fl.controls.listClasses.ICellRenderer;
       import fl.controls.listClasses.ImageCell;
       import flash.events.*;
       public class MyRenderer extends ImageCell implements ICellRenderer {
          public function MyRenderer() {
                this.buttonMode    = true;
              // set state skins to same skin so background is static
              setStyle("upSkin", lightBackground);
              setStyle("downSkin", lightBackground);
              setStyle("overSkin", lightBackground);
              setStyle("selectedUpSkin", lightBackground);
              setStyle("selectedDownSkin", lightBackground);
              setStyle("selectedOverSkin", lightBackground);
              // turn off text background by setting to 0
              setStyle("textOverlayAlpha", 0);
              setStyle("textPadding", 7);
                // event listeners
                this.addEventListener(MouseEvent.CLICK, clickHandler);
                this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
                this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
           // EVENTS
           private function clickHandler(event:MouseEvent):void {
           private function mouseOverHandler(event:MouseEvent):void {
           private function mouseOutHandler(event:MouseEvent):void {
    I want to insert calls to functions that are in the primary class (that contains the first function listed here), "ChordLib.as".
    How do I do this?

    In order for ClassA to call a function of another ClassB (or instance of it) it needs to be aware of two facts: 1) That ClassB does exist and 2) that ClassB has a particular function.
    Another approach could be establishing communication between classes via events.
    From you explanation it is not clear what you want to accomplish. Do you need to call a function on Class itself or an instance of this Class?
    If former - you need to create a static function and just call it:
    inside ClassB:
    public static function classBFunction()
    ClassA can call it:
    ClassB.classBFunction()
    If you need to call the function on an instance - you, naturally, need to instantiate the class and only then call the function.
    Say you have function inside ClassB
    public function classBAnotherFunction() - note that there is no word static
    There is another fork here: either you instantiate the ClassB inside ClassA or you pass a reference of the instance of ClassB into ClassA

  • Is there an easy way to call a java class from an applet?

    Does anyone know of an easy way to call a server based java class from an applet? Has anyone done it or came across it? If yes how/where?
    Cheers, Chris.

    I'm not sure about the issue. Are you talking about "servelets"? "RMI"? Take a look at those issues.

  • Call functions between classes

    Hi all,
    I have two java classes compiled into the DB in different schemas. How could I call the static method in classA from classB?
    I suppose I need to get the schema name in there somehow, or is it just as simple as classA.method(arg1)
    havent dared trying yet ;)

    You need to change the resolver of the referencing class to include the schema of the referenced class.
    When a class is created, whether directly by create java ddl or by loadjava it has an attribute known as a resolver which is essentially a search path for schemas to look in when resolving names referenced in the class. The resolver is a list of pairs of the form ((<pattern> <schema name>)(<pattern> <schema name>)...). When the class is resolved any name X that it references is bound to a class object by iterating over the resolver from left to right identifying each term in which the name of X matches the pattern and looking to see whether a class with the name of X exists in the schema identified by the term. If such a class exists, the search stops and the name X is bound to that class. If after looking at all the terms there is no class found, then a resolution error occurs. The pattern can either be an explicit name, or an explicit prefix followed by '*' or simply '*'. The latter is the usual pattern used, and matches any name. The default resolver given when a class is created without explicitly specifying an alternate resolver is ((* <current schema>)(* PUBLIC)). A class with this resolver will be able to resolve names in its own schema or in PUBLIC. In your case you want the referencing class to have a resolver like
    ((* <current schema>)(* <the other schema>)(* PUBLIC))
    or some variation on this. An alternate resolver can be specified in loadjava using the -resolver argument, or in create or alter java ddl using the
    resolver ((...)...) syntax. This is all documented in the java developers guide.

  • How to call function module/ class method of another system.

    Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
    my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
    of course i know about the host name, port and logon information over these systems.
    who can give my some suggestions or other solutions.
    thanks in advance.
    Johnney.

    Hello,
    If u want to call a FM of the other system then that FM should be a RFC enable on one.
    <b>CALL FUNCTION func DESTINATION dest.</b>
    Effect
    Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
    Note
    Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
    Vasanth

Maybe you are looking for

  • Media shares auto mapping drive in Windows 8.1 Pro

    What setting in Windows 8.1 is causing the automatic mapping of several shared folders named media?  I work in a university environment with staff, faculty, and students using wired and wireless networks.  I have a user with a Surface Pro 3 that has

  • My search bar is not working

    when i type something in my search bar at the top right of the page and hit enter or click on magnifying glass, nothing happens. it doesn't matter what search engine i select. can you help?

  • 3D studio Max and Archecad for Mac???

    I need somebody to help me in finding similar softwares for 3D Studio Max and Archecad on Mac and i will be very grateful thanks a lot ....

  • Satellite L650-11F is not suported in service page

    I can't find anything about Satellite L650-11F in service pages. ?f u have any idea please help me. I bought this notebook however I can't find any knowledge abou it in Toshiba web pages.

  • My wifi don't work

    Dear Mrs          my computer is the least type :macbook air MD761ZP/A  .   Nowing, my wifi don't work :  My wifi performance at work sometimes connected, sometimes disconnected great impact speed.    I require that the least wifi update 1.0 !