Uplift of Jdev Extension code from 10.1.1.3 to 11.1.1.4 - ImportWizard

This interface shows as not found in Jdev11.1.1.4
#import oracle.ideri.importexport.ImportWizard; Does anyone know where it has moved, or what replaces it?

Did you get my answer on the internal forums this morning?
It's still in the same library.
It's located by default in:
C:\Oracle\Middleware\jdeveloper\ide\extensions\oracle.ide.importexport.jar

Similar Messages

  • Uplift of Jdeveloper Extension code from 10.1.1.3 to 11.1.1.4

    Is there some sort of "Cookbook" for the uplift? I'm finding many classes have moved or are nolonger available. Any cross reference of packages/libraries etc?

    Sorry, not that I'm aware of. Be more then happy to help find the new methods and libraries as you come across them though.
    Just post up the issues and we'll help the best we can.
    --jb                                                                                                                                                                                                                                                                                                                                                                                               

  • Cannot download bpm jdev extension from the new set of binaries

    People:
    I cannot download http://download.oracle.com/otn/beta/bpmbeta1/bpm-jdev-extension.zip from the new set of binaries. I tried using firefox 3.6 and IE 8
    and i always get:
    We're sorry, the page you requested was not found.
    Please any help will be appreciated :)

    Seems to be working okay now. Try again, Nico and let me know how it goes.
    Heidi.

  • Problem while migrating code from JDev 9.04 to JDev10.1.3

    I have migrated code from JDev 9.04 to JDev10.1.3, in that i am using a customised Combo Box which is using JUPanelBinding in setModel.But that Combo Box is not displayed properly as of 9.0.4. Also when i tried to print JUPanelBinding value it is giving as - noPanel_oracle_jbo_uicli_jui_JUPanelBinding_1.
    Where is the problem ? (in panel binding or in setModel )
    Can anyone suggest me a solution for that ?

    It's a regression. I filed bug 5703242.
    As a workaround you could specify sequence name with the qulifier:
      aSequence.setTableName("TEST.SEQUENCE");Alternatively you could override TableSequence class:
    public class MyTableSequence extends TableSequence {
        public void onConnect() {
            qualifier = getDatasourcePlatform().getTableQualifier();
            super.onConnect();
    }I apologize for the inconvenience,
    Andrei

  • JDev extension SDK: How to refresh navigator via API?

    Hi,
    I'm developing a jdev extension, in which I create some files in the project source folder manually (in file system).
    These changes are not displayed in the projects navigator tree (of course). Is it possible to refresh the navigator view via SDK API, same like pressing the blue refresh-button on top of the navigation area?
    thx,
    Marcel

    Hi Harry,
    Sorry for the delayed response. I'm assuming we are on opposite sides of the world. :-)
    I looked deeper into the method that you pointed out and I've posted an internal question to some of the developers about how to get that TNode. I tried a couple of things myself, but kept running into a dead end.
    You can't get a TNode from the workspace. It has to come from the NavigatorWindow class.
    The Workspace and the NavigatorWindow are two completely different things. One is a representation of the jws and jpr files, and the other is the representation of the filesystem.
    I'm not quite sure that this will really do what you are looking for anyway. While it may refresh the Navigator window, I don't think it will go out and rebuild the tree with whatever is new in the project folder. When I look at the internal code for that Refresh button, it is doing a lot of re-reading of the filesystem and then rebuilding the tree.
    I was able to create my own menu item and have it call the action for the refresh button, but it still requires that the workspace be selected first, so it's in context when the menu us selected. Doesn't quite achieve what you're looking for.
    I'm assuming that you are looking to refresh the navigator window programmatically after you have add one or more files to the filesystem for a project. Is that correct? Just want to make sure I'm working with the same goal that you are.
    I'll keep looking into how this is done with some of our internal wizards. There has to be a way to do it.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • I want to upload HTML code from an existing site and then revise in Muse. Is this possible?

    I want to upload HTML code from an existing site and then revise in Muse. Is this possible?

    HTML files from an existing site cannot be reused in Muse as Muse works only with files having extension as .muse.
    However, you use apps like Dreamweaver to edit your existing HTML files.

  • Loading JavaFX code from string

    Hi,
    Here is my JavaFX code that I put to the SimplePainter.fx file:
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.paint.*;
    import javafx.scene.input.*;
    import javafx.scene.shape.*;
    var elements: PathElement[];
    Stage {
        title: "Simple Painter"
        scene: Scene {
            content: Group{
                content: [
                    Rectangle{
                        width: 400
                        height: 300
                        fill: Color.WHITE
                        onMousePressed: function( e: MouseEvent ):Void {
                                insert MoveTo {x : e.x, y : e.y } into elements;
                        onMouseDragged: function( e: MouseEvent ):Void {
                                insert LineTo {x : e.x, y : e.y } into elements;
                    Path{
                        stroke: Color.BLUE
                        elements: bind elements
    }I am trying to use the ScriptEngineManager to evaluate the SimplePainter file:
    import java.io.FileReader;
    import javax.script.ScriptEngineManager;
    var path = "C:/Temp/fx/SimplePainter.fx";
    var manager = new ScriptEngineManager();
    var engine = manager.getEngineByExtension("fx");
    engine.eval(new FileReader(path));It throws AssertionError:
    java.lang.AssertionError
    at com.sun.tools.javac.jvm.Gen.visitBreak(Gen.java:1631)
    at com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1167)
    at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
    at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
    However the simple 'println("Hello World!")' code is invoked fine.
    Do I do something wrong?
    Is it possible to use JavaFX compile methods to execute a JavaFX code from string?
    Thanks in advance.

    I experimented with that a while ago with JavaFX 1.1, with success: [Creating JavaFX Classes from Java Classes then running?|http://forums.sun.com/thread.jspa?threadID=5368159]
    I tried again:
    import java.io.*;
    import com.sun.javafx.api.JavaFXScriptEngine;
    import javax.script.ScriptEngine;
    import javax.script.ScriptEngineManager;
    class RunJavaFXScript
      static String SCRIPT_NAME = "Test.fx";
      public static void main(String[] args)
        // Get the current directory
        File curDir = new File(".");
        // Get the script's file content
        BufferedReader reader = null;
        File fScript = new File(curDir.getAbsolutePath(), SCRIPT_NAME);
        System.out.println("Reading the " + fScript.getAbsolutePath() + " script");
        try
          reader = new BufferedReader(new FileReader(fScript));
        catch (FileNotFoundException e)
          System.err.println("File not found: " + fScript.getAbsolutePath());
          return;
        // Create a script on the fly
        String script = "function Demo() { println('Hello World!'); return 'It works!'; }";
        System.out.println("Getting the engines");
        ScriptEngineManager manager = new ScriptEngineManager();
        ScriptEngine engine = manager.getEngineByExtension("fx");
        System.out.println("Getting the generic ScriptEngine (by extension): " + engine);
        JavaFXScriptEngine fxEngine = (JavaFXScriptEngine) manager.getEngineByName("javafx");
        System.out.println("Getting the JavaFXScriptEngine: " + fxEngine);
        // Try to run it
        try
          System.out.println("Running the script read from a file: " + reader);
          Object readScript = engine.eval(reader);
          System.out.println("Running a built-in script");
          Object internalScript = fxEngine.eval(script);
          Object r = fxEngine.invokeFunction("Demo");
          System.out.println("Returned: " + (String) r);
        catch (Exception e)
          e.printStackTrace();
        finally
          try { reader.close(); } catch (IOException e) {}
    }Compiled with:
    javac -cp %JAVAFX_HOME%/lib/shared/javafxc.jar RunJavaFXScript.java(with JAVAFX_HOME pointing at javafx-sdk1.1)
    Ran with:
    java -cp %JAVAFX_HOME%/lib/shared/javafxc.jar;%JAVAFX_HOME%/lib/desktop/javafxgui.jar;%JAVAFX_HOME%/lib/desktop/Scenario.jar;. RunJavaFXScriptIt works:
    Reading the E:\Dev\PhiLhoSoft\Java\_QuickExperiments\.\Test.fx script
    Getting the engines
    Getting the generic ScriptEngine (by extension): com.sun.tools.javafx.script.JavaFXScriptEngineImpl@758fc9
    Getting the JavaFXScriptEngine: com.sun.tools.javafx.script.JavaFXScriptEngineImpl@1113708
    Running the script read from a file: java.io.BufferedReader@133f1d7
    Running a built-in script
    Hello World!
    Returned: It works!(and it shows a Stage with a small FX script showing an animation).
    Now, I try to do the same of JavaFX 1.2: same command line for compiling (except of course pointing to javafx-sdk1.2), run command is:
    java -cp . -Djava.ext.dirs=%JAVAFX_HOME%/lib/shared;%JAVAFX_HOME%/lib/desktop RunJavaFXScript(more jars to take in account, I take everything...)
    And when I run it I have:
    Reading the E:\Dev\PhiLhoSoft\Java\_QuickExperiments\.\Test.fx script
    Getting the engines
    Getting the generic ScriptEngine (by extension): com.sun.tools.javafx.script.JavaFXScriptEngineImpl@8813f2
    Getting the JavaFXScriptEngine: com.sun.tools.javafx.script.JavaFXScriptEngineImpl@1d58aae
    Running the script read from a file: java.io.BufferedReader@83cc67
    An exception has occurred in the OpenJavafx compiler. Please file a bug at the Openjfx-compiler issues home (https://openjfx-compiler.dev.java.net/Issues) after checking for duplicates. Include the following diagnostic in your report and, if possible, the source code which triggered this problem.  Thank you.
    java.lang.AssertionError
            at com.sun.tools.javac.jvm.Gen.visitBreak(Gen.java:1631)
            at com.sun.tools.javac.tree.JCTree$JCBreak.accept(JCTree.java:1167)
            at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
            at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:751)
            at com.sun.tools.javac.jvm.Gen.genStats(Gen.java:735)
            at com.sun.tools.javac.jvm.Gen.visitSwitch(Gen.java:1210)
            at com.sun.tools.javac.tree.JCTree$JCSwitch.accept(JCTree.java:943)
            at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:679)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:714)
            at com.sun.tools.javac.jvm.Gen.genStat(Gen.java:700)
            at com.sun.tools.javac.jvm.Gen.genLoop(Gen.java:1076)
            at com.sun.tools.javac.jvm.Gen.visitForLoop(Gen.java:1047)
            at com.sun.tools.javac.tree.JCTree$JCForLoop.accept(JCTree.java:856)
    (and so on)So I have the same issue.
    Looks like something have been broken in 1.2... :-(
    Of course, the tested scripts compile without problem.
    If I put only my simple built-in script in the Test.fx file, it works... I can put an empty Stage in the script (it is displayed), but if I add an empty Scene to it, I have the same error.

  • JDEV Extensions

    I am new to JDEV Extensions. We are working on a project that requires to create a GUI designe time component where the user will be able to select items from the component gallery (custom items) and then drag it to the canvas. They should be able to connect the components using the connection links like in the BPEL designer or simple like the class diagram one.
    We are able to create new components in the component gallery, however, there is no example to make it draggable to the canvas. Also is there any example on how to build the connecting tool?
    Thank you.

    Shay,
    Sure, I have posted it in the internal oracleide message list.
    Thank you,
    Chida

  • Jdev Extension Jar put in a directory other than "JDEV_HOME/jdev/extensions

    I'm creating new rules for auditing using the Jdeveloper 10.1.3 extension API and enabling using extension framework. Once I created the rule, I placed the 'jar' file in "JDEV_HOME/jdev/extensions/" directory as per the guidelines. It is executing perfectly. But I want to place the jar in my home directory. is it possible?
    I mean I place the jar file in my home directory and I will provide classpath in 'extension.xml' file, which is a part of jar file. How can I achieve it?
    The 'jar' file contains
    a) extension.xml
    b) 2 java files
    c) one text file.
    Here extension.xml mention the link of a rule to the audit framework. I used the
    A part of extension.xml file which adds my rule to the framework.
    <hooks>
    <jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
    <addins>
    <addin>oracle.test.launcher</addin>
    </addins>
    </jdeveloper-hook>
    </hooks>
    I heard that we can do this in different types:
    a) In <hooks> tag, we can include the <libraries> tag which mentions the classpath tag and value.
    But no where I found the <libraries> tag in google search.
    b) In "JDEV_HOME/jdev/extensions/" directory we place a jar file which only contains the 'extension.xml' file and we can specify the class path of the jar file, which contains the remaining three files. is it possible? If so pls. show me the pointers to do this.
    Could you pls. suggest me.
    Thanks in Advance
    Regards
    Madhu

    Hi,
    You can install extension jars in your jdevhome extensions directory in addition to the standard OH/jdev/extensions. On platforms other than Windows, this is ~/jdevhome/extensions by default. On Windows and other platforms, the location of the jdevhome directory can be controlled using the environment variable JDEV_USER_DIR.
    Adding an extension jar to one of those two locations is usually sufficient to add it to the classpath of JDeveloper. If you have additional non-extension jars you want to add to JDeveloper's classpath, you can do so using the <classpaths> element in extension manifest. This contains <classpath> elements which are relative paths to jars from the location of the extension jar. For example, say you have
    ~/jdevhome/extensions/my.extension.10.1.3.jar
    and you want to include
    ~/jdevhome/someotherjar.jar
    You would use something like this:
    <extension ...>
      <classpaths>
        <classpath>../someotherjar.jar</classpath>
      </classpaths>
    </extension>Thanks,
    Brian

  • Hp officejet pro 8100 and it does not print bar codes from UPS or USPS

    have an hp officejet pro 8100 and it does not print bar codes from UPS or USPS.  Can you please please help? i have used my ipad, by HP G62-355DX Notebook and neither will give me printed bar codes.  The balance of the mailing label do print, just not the bar code.  It may be my imagination, by I believe it used to print thebar codes.

    Hi,
    Try adding an alternate driver and try to print.
    To use an alternate print driver for HP printers in Windows 7:
    1. Click on the Start menu.
    2. Click on Devices and Printers.
    3. Click Add a Printer
    4. Add a local Printer
    5. Select Create a New Port
    6. Select Standard TCP\IP port
    7. Enter Printer IP address (Printer IP address can be found by printing network config page from printer
    8. Under Manufacturer select HP and under printer select HP Officejet 8000 pirinter or Officejet 7410
    9. Click apply and try printing
    Although I am an HP employee, I am speaking for myself and not for HP.
    --Say "Thanks" by clicking the Kudos Star in the post that helped you.
    --Please mark the post that solves your problem as "Accepted Solution"

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    Downloading apps it asks for apple ID Pass then it says "verification required". Then says Security Code required. Doesn't accept code. itunes doesn't accept code from visa card either?Please Help

    If it is trying to verify your payment info, I would be willing to guess that it is looking for the security code for your credit card. Did you credit card just get replaced lately or the expiration date change? When is the last time that you updated your payment information in iTunes?

  • How to create a database for sample code from Tutorial/Book?

    I want to try out the sample code from [http://shop.oreilly.com/product/0636920013471.do] for the book SQL Pocket Guide 3rd Ed.
    I have downloaded the oracle vm/appliance for oracle 11g2 and I have started sqlplus as sysdba.
    I'm feeling overwhelmed with these links describing how to create a database:
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html]
    [http://www.adp-gmbh.ch/ora/admin/creatingdbmanually.html]
    (1) What is the command to list the existing databases?
    (2) What is the command to delete an existing database?
    (3) When creating a new database with the create database command, is it necessary to specify the logfile, character set, national character set, datafile, sysaux datafile, undo tablespace, temp table space? Do these have reasonable defaults? I'm not sure what proper directories are to specify for Linux and the examples are for windows.
    Can someone give me a simplified create database command to create a database called 3rdEdPocketGuide? Should I follow the example at [http://tldp.org/HOWTO/Oracle-7-HOWTO-3.html] and instead of orcl use 3rdEdPocketGuide?
    (4) What command do I use to execute the script that comes with the book SQL Pocket Guide 3rd Ed? This is the script that has all the drop table, create table and insert commands in it.
    (5) What command do I use in sqlplus to set the current default database prior to running this script? Perhaps this is the connect command? I don't want my script to create tables in the system database.
    (6) I tried the command "connect 3rdEdPocketGuide" and it prompted for a password! Yikes! What password? Do I need to specify a password when I create a database? I cannot tell if I have successfully created such a database or it is just prompting me for a password to thwart malicious users. Is it is possible to create databases which don't require a password or maybe a zero length password?
    Thanks
    Siegfried
    Edited by: user8816970 on Sep 26, 2012 12:01 PM
    Edited by: user8816970 on Sep 26, 2012 12:18 PM

    user8816970 wrote:
    Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.
    Thanks!
    Siegfried
    >Paul,
    Thanks! I tried changing my profile name to siegfried but I'm not seeing the change...
    Anyway, I'm trying your suggestion to use SQL Developer which was already installed in the virtual box appliance and I cannot figure out how to get a connection.
    When I use the defaults of sid=xe, port=1521, hostname=localhost and specify
    username=sysdba
    password=
    I get status: failure - test failed: listener refursed connection with the following error: ORA 12505, TNS: listener does not current know of sid given.
    So I try sid=orcl and that works better: status: failure - test failed: ORA-01017: invalid username/passowrd; login denied
    OK, sqlplus let me in with out a password, why does not this work?
    So I try checking the box for "OS Authentication" and I get the same error!
    Hoek: I tried searching the documentation and found "3 Exploring Oracle Database with SQL Developer" at http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/toc.htm but following those directions did not help. Can you be more specific? The directions were for a tutorial and I need to know what the passwords are for the database set up with [http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html|http://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html] . I also found [http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG|http://docs.oracle.com/cd/E11882_01/appdev.112/e10766/tdddg_connecting.htm#CEGHFHIG] but that did not help either.
    Everyone:
    Do I need to create a user using SQL*Plus first so I can login with "Oracle SQL Developer" so I create my database called? What would be the "create user" command I would execute?
    OK, so I run sqlplus and issue these commands
    create user siegfried identified by abc ;
    grant connect to siegfried ;
    connect siegfried/abc;
    above does NOT use SQL*Net to connect to the instance
    >
    Now, how do I create a database? In Microsoft SQL Server one has to create a database first and if you just start creating tables without creating a database first, the tables will be created in the system database and this is usually undesirable.
    Sometimes a database is known in the java connection string as the catalog. Is there any such analog in oracle SQL plus?
    So now what do I do? I want to create a bunch of tables using my script I downloaded from 3rd Ed SQL Pocket Guide. Does my new user "siegfried" have the right to create tables? I guess I could try but I don't want to create tables in the system database.
    I noticed I can also use "Oracle SQL Developer" to connect with my new "siegfried" account. It seems that I should have been able to connect with sysdba... strange.
    So now I am connected in the "Oracle SQL Developer" and I see no list of databases.SQL Developer can only connect to the instance via SQL*Net
    >
    Thanks!
    Siegfrieda database in SQL Server is same as schema/user in Oracle

  • How to do selective delete of the GL a/c, BA and Co Code from the BWrequest

    Hi,
    How to do selective delete of the GL a/c, BA and Co Code from the BW request ??
    Regards,
    Vivek

    Cube or DSO?
    Cube - manage - notedown the req number - selective deletion - enter req number at REQ ID and give the selection parameters as you need(GL a/c, BA and Co Code ) and execute.
    For DSo you can't do selective deletion on request id basis

  • How move code from one class to other?

    I have a .fla file.
    There i have some keyframes with labels.
    On .fla file in property in Class field i adde MyMatching class.
    Also i have main code:
    package
         import flash.display.MovieClip;
         import flash.events.MouseEvent;
         import flash.text.TextField;
         public class MyMatching extends MovieClip
              var play_btn:MyButton = new MyButton();
              var kyky:MyTimer;
              public function MyMatching():void
                   welcomeScreen();
              public function welcomeScreen():void
                   stop();
                   trace("working");
                   play_btn.x = 210;
                   play_btn.y = 300;
                   addChild(play_btn);
                   play_btn.addEventListener(MouseEvent.CLICK, goToLevel_1);
              public function goToLevel_1(event:MouseEvent)
                   trace("level 1");
                   play_btn.visible = false;
                   gotoAndStop('Level1Screen');               
                   if (kyky==undefined) {
                        kyky = new MyTimer();
    And i have other class:
    package
         import flash.display.MovieClip;
         import flash.display.Stage;
         import flash.utils.getTimer;
         import flash.text.TextField;
         public class MyTimer extends Stage
              import flash.utils.getTimer;
              var gameStartTime:uint;
              var gameTime:uint;
              var gameTimeField:TextField;
              function mainFunction():void
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime=getTimer();
                   gameTime=0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              function showTime(event:Event)
                   gameTime=getTimer()-gameStartTime;
                   gameTimeField.text="You plaing: "+clockTime(gameTime);
              function clockTime(ms:int)
                   var seconds:int=Math.floor(ms/1000);
                   var minutes:int=Math.floor(seconds/60);
                   seconds-=minutes*60;
                   var timeString:String=minutes+":"+String(seconds+100).substr(1,2);
                   return timeString;
    Ho i can play code from class MyTimer in goToLevel_1 function(this function stand in my main class MyMatching) ?
    Thank you.

    First of all your MyTimer class is written wrong and sloppy.
    Why does it extend Stage? The most compact class to extend under the circumstances is Sprite.
    Also, it is very important to get into habit of datatype declarations. Not only it is good practice, in your case good compiler will throw error because although you return String, function doesn't return anything.
    In addition, it is important to declare namespaces like private public and protected inside classes. Not function clickTime():String but private function clockTime():String or public function clickTime():String.
    As for how to show your time elsewhere - you just need to create instnace of it and add it to disaply list:
    var myTimer:MyTimer = new MyTimer();
    addChild(myTimer);
    With that said, your class should look like this:
    package 
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.display.MovieClip;
         import flash.utils.getTimer;
         import flash.text.TextField;
         public class MyTimer extends Sprite
              private var gameStartTime:uint;
              private var gameTime:uint;
              private var gameTimeField:TextField;
              public function MyTimer()
                   gameTimeField = new TextField();
                   addChild(gameTimeField);
                   gameStartTime = getTimer();
                   gameTime = 0;
                   addEventListener(Event.ENTER_FRAME,showTime);
              private function showTime(event:Event):void
                   gameTime = getTimer() - gameStartTime;
                   gameTimeField.text = "You playing: " + clockTime(gameTime);
              private function clockTime(ms:int):String
                   var seconds:int = Math.floor(ms / 1000);
                   var minutes:int = Math.floor(seconds / 60);
                   var timeString:String = minutes + ":" + String(seconds + 100).substr(1, 2);
                   return timeString;

Maybe you are looking for

  • Command, Shift, L should justify left but instead it takes me to Safari

    My keyboard shortcuts seem to work fine except for the justify left shortcut.  Every time I try it, it takes me to Safari.  It used to work before.  I don't know what's wrong with it.  Any ideas?

  • Specifying rowspan and colspan in XML

    Hi All, My aim is to transform a XML file which contains description about input( text, button, checkbox etc) tags, rowspan, colspan, maxfield size etc into HTML tags. How should I specify all these attributes rowspan, colspan, maxfield size in XML t

  • Encore will not function

    I am unable to get Encore to export in any format.  It will open only with Premiere open also.  I get the following error message when attempting to export: When I right click on the ! in the triangle at the end of the file it says :Could not read fr

  • Game Creation

    I have an old dance mat and want to practice my Java skills so I'm looking at building a dance mat game for my evil Vista PC. The dance mat seems to configure with windows perfectly but I haven't tried to experiment with listener classes to see if I

  • It Returns"

    Hi, the case of the missing music clip announcing a new email..after the latest updates the music is NO longer Missing..well done Apple geeks" ...L