Global functions without using unique AS file

Hi all,
I'm tinkering around with things in AS3, and now that programming the reaction of buttons involves a bit more code, I'm trying to figure out how to kill a few redundancies.
With the file I'm working with, at different points, using different objects, the user will click some specific thing to advance the main timeline one frame.
Now, the way I've been doing it is, for each object, I have an addEventListener, which calls a function that only contains:
MovieClip(root).nextFrame();
So I've got, on every frame, unique functions that each require three additional lines of code -- I realize it's not much, and it's not a lazy thing, just an organizational, minimization thing.
Since it's just that one thing, I don't see the point in making an entire AS file, so I didn't know if there was a way to make a function that could be called from any frame, from any object, rather than just have them local.

I've tried that, but the objects that call the function are all within movie objects that are on the main timeline.  Since they aren't on the main time line, even if I declare a function on the main time line, the code inside the object doesn't see that function declaration and I get an "Access of undefined property" error.

Similar Messages

  • How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?

    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

    Hi,
    As you might guess, we are not big VB users here :-) but we may have some C# code that
    could be of some value.
    What problem are you trying to solve by not using WSDL?
    Just curious,
    Bruce
    Dovan Nguyen wrote:
    Hi all,
    I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
    webservice. Could anyone please post a sample VBScript codes invoking a soap service
    on WL 7.0 WITHOUT using a WSDL file, for example at:
    http://localhost:7001/HelloWorld/Hello
    with the service method:
    public org.w3c.dom.Element say(String something);
    Thanks,
    Dovan

  • How to Set multiple Global Variables without using Controls or Indicators

    I have to set many Global Variables (i.e. declare and initialize them) in a subVI in order to pass them to various other subVI's. The only way I know how to do it in LabView is to create a Globals.vi on which you create a control or indicator for EACH Global Variable. That's fine if you have only a few variables. But I have close to a hundred Global Variables (which come from a configuration file for a large program) and clearly it is impractical and cumbersome to create a control for each global variable. In Agilent Vee, there is a simple function called "Set Variable" that sets the data value of a global variable. Then in other module, you simply use the "Get Variable" function to get back the v
    ariable and its value.
    In LabView you can use the "Invoke Node / Set Control Value" and "Get Control Value" properties to achieve the same thing. But as mentioned above, you need to create a control for each global variable and that is a big pain in my case, with many global variables. Furthermore, the global variables are read from a Configuration Text File to this VI. Is there a way to do it without using the control? Thank you in advance for any help.

    Actually you could create the same sort of facility in LV. All you have to do is create a LV2-style global that behaves as follows:
    To write a value to it, you supply a value name and the value. These pieces of data are save internally in seperate arrays.
    To read a value, you supply a value name. The VI looks up this name in the value name array to return an index into the value array. Output the value you find.
    Frankly though, it sounds like what you really need is not hundreds of globals, but a good way to manage configuration data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How to use ODBC SQLDriverConnect() without using tnsnames.ora file

    I have an ODBC application that connects to an Oracle 10g database. Currently, my SQLDriverConnect() function call uses the following connection string:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    This requires an entry in the tnsnames.ora file that looks like this:
    MyDB.world =
    (DESCRIPTION = (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server1.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server2.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server3.intel.com)(Port = 1521)
    (ADDRESS =
    (PROTOCOL = TCP)(Host = server4.intel.com)(Port = 1521)
    (LOAD_BALANCE = yes)
    (CONNECT_DATA = (SERVER = DEDICATED)
    (SERVICE_NAME = MY_SRVC))
    However, I would really like to be able to connect using ODBC without having to create that entry in the tnsnames.ora file. I have tried to substitute the DBQ=MyDB.world with the entire (DESCRIPTION=..... string from the original tnsnames.ora file, but it returns the error:
    ORA-12154: TNS: Could not resolve the connect identifier specified.
    I have heard others are able to use sqlplus with no tnsnames.ora file and the do specify the entire (DESCRIPTION=.... string on the sqlplus connection string, but is this possible to do using the ODBC SQLDriverConnect() function? If so, do I need to use a different keyword/value pair other than DBQ=?
    Any help on this would be greatly appreciated.
    Thank you.

    How would that work in a load balanced configuration? Take a closer look at the tnsnames.ora example I included in my original post. I have 4 ADDRESS= sections to denote 4 servers that are part of the load balanced environment.
    Also, I'm not familiar with that syntax, I need to use the syntax supported by the SQLDriverConnect() API function, which looks like this:
    DRIVER={Oracle in OraClient10g_home1}; DBQ=MyDB.world; DBA=W; UID=foo; PWD=bar
    I don't know as SQLDriverConnect() would accept an alternative syntax. But the more important issue here is the ability to specify those 4 servers in the load balanced configuration as indicated by that tnsnames.ora entry.

  • How to execute a jar file which has an applet, without using a html file ?

    I have a jar file which contains a set of class files. iam able to execute the jar file by using this html code
    <html>
    <applet code="file.class" archive="file.jar" width="500" height="300">
    <param name="name" value="value">
    </applet>
    </html>
    I want to know how to execute this class file without using the html tags.
    pls help me out in this.
    Anki

    Hi,
    You can make an executable jar file such that when you double click on that it starts running. Just follow the steps.
    1. Open a notepad and write the following
    Main-Class: XXXXXXXX
    XXXXXXX means Your Main Class name. Don't forget to press Enter after you write your class name.
    2. Save the file as Mani.mf
    3. In the commant prompt ( your directory ) type following lines.
    jar cmf Mani.mf Demo.jar *.*
    4. This will make a jar file which is executable jar file
    Hope this will help you.
    Deepak

  • Invoking Web Services Without Using the WSDL File - RPC

    I would apprecite if someone can provide sample code
    for RPC client for WeatherEJB sample code without using wsdl file.
    Thanks ,
    ag

    Hi,
    Attached is a small program that calls a service CurrencyExchangeRate
    registered at www.xmethods.com.
    The program uses pure java to call the service.
    Hope that helps
    Thanks
    Amit Chauhan
    ag <[email protected]> wrote in message
    news:3c59734d$[email protected]..
    >
    I would apprecite if someone can provide sample code
    for RPC client for WeatherEJB sample code without using wsdl file.
    Thanks ,
    ag[webservice.java]

  • Database functions without using a database

    I think I should have posted this here instead of on the
    basics are. Anyway here is my problem.
    I'm creating a little standalone program that needs to have
    database like functions. The program needs to store data fields
    like names, titles, etc. that can be modified/customized by the
    user. I've done this before in mySQL. But I don't want the user to
    have to go to a website or have a database loaded on their
    computer. I just want the fields to be stored in some type of
    document file that would be in the same folder as the program. Any
    suggestions?

    There are several options - all require some simple
    scripting. To name a couple:
    Director can write to text files with the built-in Fileio
    xtra, so you could create a delimited text file database.
    Director's list functions are perfect for creating a simple
    database. You can save lists to files easily using the propSave or
    vList xtras - fre IIRC for simple this simple functionality
    http://www.updatestage.com/products_table.html
    hth
    johnAq

  • Can i create a home window without using a NIB file

    I hate interface builder, it is a really counter-intuitive piece of junk. Please don't try to convince me otherwise I prefer to do it all in code. Right now i have my whole product running dynamically, creating all the interface objects programmatically as my positioning is all calculated on the fly.
    However I still have one NIB file (MainWindow.NIB) that creates the home window and somehow links to my AppDelegate class, which is the startup class for my app. I see that my main.c routine calls UIApplicationMain() which somehow loads the main nib (hidden magic here), and then eventually my AppDelegate() method which is of calss UIWindow() gets called with an initialize() call followed by applicationDidFinishLaunching() call and off we go.
    Can I create the window dynamically by not using NIBs? Now that we have ipad and iphone to contend with, I would want to create a window that is either 320 x 480 or 768 x 1024 depending on what machine I am on. I would like to get rid of the NIB because I don't understand the wiring stuff and I tried to make a NIB myself but now get a cryptic error message, and anyway the NIB has a fixed size and my app wants to be dynamic now that we have two screen sizes.
    The second part of the question is how do you know what kind of machine you are on? I don't see a Gestalt() routine like in the old mac days so you can tell what machine it is.

    There are always less-informed people who think that a STATIC development tool is somehow more powerful than a flexible dynamic interface computed as one goes. The idea of a static screen form that you control dates back the 80's; modern interfaces are DYNAMIC and interface builder cannot construct those; sure it can perhaps help you lay out things, but if the user turns on certain features then new controls are visible. We have built products with over 500 controls in them and as only perhaps 25 are needed at any one time the software rearranges the screen in the most optimal form at all times. The more advanced the product the more one chafes at a static design tool.

  • Column Group Values Function without using Analytics?

    I'm looking for a out-of-the-box Oracle SQL function that will visually group column values. (As shown in the Department column below).
    I know that you can accomplish this using analytic lead/lag functions (also shown below), but I figure there must be another simpler, straight-forward function than this?
      SELECT   CASE
                  WHEN LAG (deptno)
                          OVER (PARTITION BY deptno
                                ORDER BY ename) IS NULL
                  THEN
                     deptno
               END department,
               ename,
               empno
        FROM   scott.emp   
    ORDER BY   deptno,
               ename;
    DEPARTMENT     ENAME     EMPNO
    10          CLARK     7782
              KING     7839
              MILLER     7934
    20          ADAMS     7876
              FORD     7902
              JONES     7566
              SCOTT     7788
              SMITH     7369
    30          ALLEN     7499
              BLAKE     7698
              JAMES     7900
              MARTIN     7654
              TURNER     7844
              WARD     7521

    Solution with model
    select deptno  ,empno,ename,ind
    from emp
    model
    partition by ( deptno dept )
    dimension by (row_number()over(partition by deptno order by empno) rn)
    measures(empno,deptno , ename, 0 ind)ignore nav
    rules(deptno[rn>1]=null,
    ind[rn>1]= 1
    )order by dept,ind
    SQL> select deptno  ,empno,ename,ind
      2  from emp
      3  model
      4  partition by ( deptno dept )
      5  dimension by (row_number()over(partition by deptno order by empno) rn)
      6  measures(empno,deptno , ename, 0 ind)ignore nav
      7  rules(deptno[rn>1]=null,
      8  ind[rn>1]= 1
      9  )order by dept,ind
    10  /
        DEPTNO      EMPNO ENAME             IND
            10       7782 CLARK               0
                     7934 MILLER              1
                     7839 KING                1
            20       7369 SMITH               0
                     7566 JONES               1
                     7902 FORD                1
                     7876 ADAMS               1
                     7788 SCOTT               1
            30       7499 ALLEN               0
                     7900 JAMES               1
                     7844 TURNER              1
                     7698 BLAKE               1
                     7654 MARTIN              1
                     7521 WARD                1
                     4568 salim               0
    15 rows selected.
    SQL> Edited by: Salim Chelabi on Mar 31, 2009 3:33 PM

  • Upload a file into Oracle database without using a temp file in the server.

    Hello.
    I need to upload a file into a Oracle database, but I have not permission to write a temp file in the aplication server. Because of this, I can't use a MultipartRequest object.
    Does anybody know how to do this?
    Thanks everybody for your help.

    You can still use a MultiPart request.
    Use the Apache FileUpload package.
    Get the InputStream of the file being uploaded.
    Now you can either store the file in memory by writing to a java.io.ByteArrayOutputStream or you can save the file to Oracle by writing it to a java.sql.Blob object using the Blob.setBinaryStream method. This Blob object can then be persisted to Oracle.
    Unfortunately I don't have sample code readily available.

  • I cannot get the restore function to use another bookmarks file - why? I am using Firefox v6.0.2 on HP laptop dv4t-1000 with Win 7 OS.

    I copied a Firefox bookmarks file from my desktop to my laptop, so I could restore the bookmarks to Firefox on my laptop. But the restore function does not seem to work. Can someone please offer some help with this? Thanks!

    Exactly what type of file did you copy?
    '''Restore''' is for JSON bookmark backup files - it will replace your bookmarks. <br />
    An HTML '''export''' needs to be '''import'''ed into Firefox - it will append the currently installed bookmarks.

  • Web services client without using the WSDL file

    I need to invoke a web service without WSDL, as the method and primitive type parameters will be defined by the user at runtime..
    I am not interested in the return.. and can live without complextype parameters..
    I found this example.. that seems to do what I need.. is there an open source equivalent to these weblogic classes? or maybe in java se?
    http://edocs.bea.com/wls/docs61/webServices/advanced.html

    http://www.ibm.com/developerworks/library/ws-tip-jaxwsrpc4/index.html
    http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/twbs_jaxwsdynclient.html

  • Need Workaround for periodical autocommit in WebForms without using Timer

    Hi guys...
    I need to use autocommit in my form for say 1 min.
    As ther is a great performance degradation when i go for timers, i need a workaround to achieve the same functionality without using timers.
    Thanx & Regards
    Sriram

    <p>Get this zip file
    <br><br>
    unzip the file<br>
    copy the bean_timer.jar in your <forms_home>/java directory<br>
    update your formsweb.cfg configuration file<br>
    archive_jini=f90all_jinit.jar,...,bean_timer.jar<br><br>
    open, compile and run the beantimer.fmb sample demo
    <br>
    </p>
    Francois

  • Use HCM processes and Forms without using the Enterprise Portal

    is it possible to leverage existing HR Admin Services (HCM processes and Forms) functionality without using the Enterprise Portal?
    1) Create an Adobe form and Interface using SFP
    2) Set up ISR and Form Scenario
    3) Set up Forms configuration to use existing Backend and generic Services
    4) Set up workflow to updated Backend using Services
    is it possible to do the above steps and not use the Portal? If Yes, how do we present the forms to the Manager, and provide different buttons that appears on the Portal by default?
    Any ideas will be greatly appreciated.
    Thanks,
    Saurabh

    Hi Saurabh,
    your assumptions and findings (items can not be started from the backend workflow inbox etc.) are correct: These processes can not be started without the Portal and it is not intended to do this.
    The above mentioned backend report are only forseen for implementation and testing purposes and not for productive use.
    In addition to the fact, that you already can't execute the work items a lot of other features of the framework (Process Browser etc.) are only available through the Portal.
    Best Regards
    Michael Bonrat - Solution Manager HCM Processes and Forms
    Info about HCM Processes and Forms:
    www.service.sap.com/erp: 
    - SAP ERP Human Capital Management -> Workforce Process Management -> HCM Processes and Forms

  • How to use template.fmb file within form builder

    Hi
    I have created forms without using template.fmb file
    and deploy them on EBS then they working fine
    But when I try to use template.fmb file then it gives an error
    following are the steps :
    1:open template.fmb file with form builder
    2:rename that file with XXXX.fmb
    compile that file and deploy XXXX.fmb file in AU_TOP
    after that
    in putty i m trying to create XXXX.fmx file in same TOP but it gives an error
    Forms 10.1 (Form Compiler) Version 10.1.2.3.0 (Production)
    Forms 10.1 (Form Compiler): Release - Production
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    PL/SQL Version 10.1.0.5.0 (Production)
    Oracle Procedure Builder V10.1.2.3.0 - Production
    Oracle Virtual Graphics System Version 10.1.2.0.0 (Production)
    Oracle Multimedia Version 10.1.2.0.2 (Production)
    Oracle Tools Integration Version 10.1.2.0.2 (Production)
    Oracle Tools Common Area Version 10.1.2.0.2
    Oracle CORE 10.1.0.5.0 Production
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package specification APP_CUSTOM...
    No compilation errors.
    Compiling package body APP_CUSTOM...
    Compilation error on package body APP_CUSTOM:
    PL/SQL ERROR 302 at line 22, column 19
    component 'DISABLED' must be declared
    PL/SQL ERROR 0 at line 22, column 5
    Statement ignored
    PL/SQL ERROR 201 at line 40, column 5
    identifier 'APP_WINDOW.CLOSE_FIRST_WINDOW' must be declared
    PL/SQL ERROR 0 at line 40, column 5
    Statement ignored
    Compilation errors have occurred.
    Form not createdfollowing is command
    $ frmcmp_batch module=$AU_TOP/forms/US/XXXX.fmb userid=APPS/apps output_file=$AU_TOP/forms/US/XXXX.fmx module_type=form batch=NO compile_all=special

    for you question - EBS General Discussion General EBS Discussion
    Compiling Forms In R12
    and search on forum

Maybe you are looking for

  • Time Machine will not recognize hard drive

    Time Machine tells me "You cannot open "Time Machine" preferences pane because it is not available to you at this time." My Lacie HD is on and mounted. I have erased it and repartitioned it and still get nothing. I get the would you like to set up TM

  • Apple TV to VGA input video projector-what do I need

    Please help. My understanding is that the Apple TV has HDMI output.  I want to hook it up to a video projector that only has VGA in.  Someone told me that all I need is a simple inexpensive HDMI to VGA cable.  Then I read something that seems to comf

  • The Very FIrst iPod Classic - Having Issues

    So, my brother's iPod keeled over and I told him I'd see what I can do. It's one of the very first iPod classics. They don't even sell these anymore. It's a 20GB metal design from 2004. I figure it's just fried, but I still wanna try. I don't think i

  • Copy data between cubes

    I need to copy data between two cubes (through a business rule). Can I do it using Partition/Replication? If so, does anyone have an example on how it is done? I'm currently using @XREF, but that does not transfer data for blocks that don't already e

  • Latest OS update 10.2.1.2102

    I have updated to OS 10.2.1.2102 on my Z10 and my wife's Q10, no problems at all with the updates nor since. Question: What is new in this latest update? Solved! Go to Solution.