How to do something before the interface is seen?

    I want to use Lingo to do something before everything is seen (before the first frame, and before the exe interface appears). But I don't know how to realize.
    For example, I want to run the code:
        alert("test begin!")
before everything is seen. I have tried to write the statement in startMovie(), prepareMovie(), prepareFrame(), and beginSprite(), and all failed. In all case, the alert message is popped after the interface appears.
    How to do? Thanks!

It depends on exactly what you want to do. In some cases you might have to set your movie to open with a stage size of 1 x 1, or completely off screen, before you do what you want and resize/move it. In other situations the lingo.ini file can be used to execute the #startup handler. However, you should only rely on this handler to set global variables - some objects, like cast members, sprites, etc. aren't available. Refer to the existing lingo.ini file in your Director\Configuration\  folder

Similar Messages

  • How to do something before the user session expires

    Hi,
    I need to do some extra cleanup (delete some rows from database, etc) before the session of a user expires.
    I tried to do it with Phase Listeners, but haven't figured out how to put it on the session, I guess I need a kind of Listener.

    Can implement ServletContextListener to fire off events on context destroy.
    example.
       public class LifeCycleServletContextListener
          implements ServletContextListener {
          public LifeCycleServletContextListener() {
          public void contextInitialized(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextInitialized");
          public void contextDestroyed(
            ServletContextEvent sce) {
             System.out.println(
               "LifeCycleServletContextListener:
                   contextDestroyed");
       }

  • Do something before the PDF be openned

    I wanna do something before the PDF be openned.
    Can I complete it? How?

    Are you using the standard PDF methods for encryption?  If so, then you want
    to write a custom security handler and that handles encryption, decryption
    and rights management.
    If you are using your own encryption format - so that the PDF is no longer a
    real PDF - then you want the AVConversion APIs.  However, that won't help
    you with the rights management.  You will need to do a lot of overriding and
    hooking in order to catch those.

  • Xgrid: How to retrieve results before the job ends?

    Hello everybody,
    I am using Xgrid and I would like to know how to retrieve the output files before the job ends (this is really important for my activity).
    Indeed, from my own experience and from what I have read in the tutos (http://www.macresearch.org/thexgrid_tutorials_part_i_xgridbasics), it seems that the job must be done to get the output files. To "solve" the problem, I currently write to the standard output, which can be retrieved while the job is running by using the option "-job results". But of course, this is far from convenient...
    Any hint?
    Thanks.

    Dear Pavan,
    thank you so much for your reply. I have further questions.
    Most of the mentioned reports and transactions do not produce a table as a result, but some other result like a old fashioned list output. Just call reports RSTPTEST or SDCCHECK, or transaction ST02 to check this. Can you tell how to retrieve such results?
    Regarding the Web Service, since we need this in some 4000 systems with different NW levels from 4.6C through 7.40, we need some functionality which is already existing in the systems. Is there anything like this available?
    Regards,
    Joachim

  • How to do something with the moved file ???

    I bet it is easy, but as I am new to AppleScript, still need help..
    This is a folder action. When a new file is added to the folder, the folder action script runs, and if the file name contains a particular text, then the file is moved to another folder - in this case, it is moved to a folder on an external hard drive. It is described in this script:
    copy name of thisItem as string to FileName
    if FileName contains "House" then
    move thisItem to POSIX file "/Volumes/ALL/House/Season 5/"
    The problem is - in that folder (/Volumes/ALL/House/Season 5/) I also have set a folder action, that, for example, converts or opens every file added to folder. The things is that, it is rather slow to run 2 folder actions and I don't know why it is so, but I guess it is because of the external hard drive. My aim is to remove the folder action for the folder (/Volumes/ALL/House/Season 5/), and do everything in the initial folder action.
    So the question is - How can I operate with (for example, convert or open the newly added file) the file added in the folder (/Volumes/ALL/House/Season 5/) via the first folder action script?
    Or in other words, how do I use the newly added file? I tried to do it like this:
    copy name of thisItem as string to FileName
    if FileName contains "House" then
    move thisItem to POSIX file "/Volumes/ALL/House/Season 5/"
    open thisItem
    But obviously, it opens the original thisItem! So how can I do something with the newly added file in the location /Volumes/ALL/House/Season 5/ ???
    Cheers and sorry for my english!
    Message was edited by: reinisb

    But obviously, it opens the original thisItem! So how can I do something with the newly added file in the location /Volumes/ALL/House/Season 5/ ???
    That's easy - you know the file name and you know the directory you copied the file to, so instead of:
    open thisItem
    you just:
    open POSIX file "/Volumes/ALL/House/Season\ 5/" & FileName

  • How to generate invoice before the PGI.

    Hi,
    As we all known, invoice always generated after Post Goods Issue. But if we request the system could generate the invoice before the PGI...
    For example, after we received the pick confrm signal from 3rd party service provider, then the invoice is generated...
    For above scenario, what kind of customrize should be done in the system to achieve it??
    Thank you very much!!

    Dear Hoo,
    As per the standard you will be able to do the billing for the delivery after completion of the PGI only and it is advaisable also.
    Billing before PGI will not advaisable.
    Still if you want you have to do customisation with the help of ABAPer
    Try to maintain the Copying routine in such way that in the copycontrol settings between Delivery and billing ,Transaction VTFL.
    I hope it will help you,
    Regards,
    Murali.
    Edited by: Murali Mohan.Tallapaneni on Aug 13, 2008 6:30 AM

  • How to erase something from the backgroung

    @how do I erase something unwanted from the background of my picture?

    There are three tool for erasering back ground.................
    1. Magic Eraser Photoshop Magic Eraser Tool
    2. Pen Tool Photoshop Pen Tool
    3. Magic Wand Tool Photoshop Magic Wand Tool

  • How to buy something from the UK app store?

    I tried to download an app and I got a message that it's only available in the UK app store. My account is only valid for the US app store. I know that I can change the country in my account, but how can I do it? And can I download the app if I don't live in the UK?

    You must be in the UK to dowmload from the UK store.

  • How to do something before exit?

    hi all
    i'm writing a simple db application
    i want it to execute the last update on a db table before exit
    the code is:
        private void exitForm(java.awt.event.WindowEvent evt) {
            try
                Statement st=tmc.createStatement(); 
                st.executeUpdate("UPDATE OPERATORI SET LOGGATO=FALSE WHERE OPERATORE='"+user+"'");        
                System.out.println("i'm exiting");
                System.exit(0);
            catch(SQLException s)
                s.printStackTrace();
            }when i got the output message "i'm exiting" i thinked that the db was modified, but checking it i saw that nothing changed
    i tried the same code without the "System.exit(0);" line in a actionPerformed method of a temporary button that i putted on my form and it worked
    so i think that the System.exit(0) call in a certain way arrives before or interrupts the db transition
    i want to hide to my users this action, that's the reason for which i wrote my code in such a way!
    any hint?
    thanx in advance
    sandro

    Hi Sandro,
    I am using databases and i have never had this problem.
    But before closing the application, I always close the connections with database.
    Why dont you try
    private void exitForm(java.awt.event.WindowEvent evt) {
    try
    Statement st=tmc.createStatement();
    st.executeUpdate("UPDATE OPERATORI SET LOGGATO=FALSE WHERE OPERATORE='"+user+"'");
    System.out.println("i'm exiting");
    tmc.close(); //close the connection
    System.exit(0);
    catch(SQLException s)
    s.printStackTrace();
    I hope it works well for you
    sergio

  • HT204266 How to purchase something from the app store using multiple forms of payment at one time?

    I am trying to purchase Final Cut Pro from the AppStore in multiple forms of payment. And I am just a bit confused as to how to accomplish this. I recieved an Apple Gift card of half the cost of the program, and I wanted to use that then pay the difference of the cost with a credit card. How do I set this up? I need to download the program tonight, so if someone in the community could get back to me ASAP, that would be greatly appreciated.

    Settings > General > Restrictions > Installing Apps > OFF
    Settings > General > Restrictions > In-App Purchases > OFF
    Settings > General > Restrictions > Require Password > Immediately

  • Does Anyone Know How Many Pre-Orders before the No Longer Accepting Orders Announcemtn

    Just curios...did anyone find out how many iphones were sold until Verizon stopped Pre-Orders?

    Order #s are random. I am sure they will be releasing info on that soon. 

  • How to write select statement before the loop and how to use read statemnt

    Hi,
    Recently our system has changed from 4.6 to ECC6.
    As its migrated its showing lots of errors like in between loop and endloop there should be no select statemnt........
    Can any one please tell how to write that coding in ECC6 , how can i change the code......
    In between loop and endloop i am having lots of select statemnts.....ple tell thye coding how can i select before the loop starts and
    how to read that internal table in loop.

    Hi Deepthi,
    You can do as per below:
    1) Select the required entries from the tables you need (VBAK, VBAP, KNA1, etc)
    SELECT VBELN ERDAT KUNNR
        into table it_vbak
        from VBAK
    where VBELN = S_VBELN. "Selection criteria
    If sy-subrc = 0.
    SELECT VBELN POSNR MATNR
        into table it_vbap
        from VBAP
    for all entries in it_vbak
    where VBELN = it_vbak-vbeln
    SELECT KUNNR NAME1
        into table it_vbak
        from VBAK
    where VBELN = it_vbak-vbeln.
    endif.
    2) Loop at the entries, and read internal table it-kna1 for customer info.
    Loop at it_vbak into wa_vbak.
    read table it_kna1 into wa_kna1 with key kunnr = wa_vbak-kunnr.
    if sy-subrc = 0.
    endif.
    loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
    endloop.
    endloop.
    This is the basic idea and short example of how to extract entries and read internal table.
    Hope this helps.
    Regards,
    Patrick

  • To use the interface creating a container

    Hello,
    I read around that is normal thing write Set<String> set = new HashSet<String>() in place of HashSet<String> set = new HasSet<String>(); I read the same with other containers too (Map = new HashMap, List = new ArrayList). I don't understand the real importance. Moreover, If I got something right, the interface "could" not have "few" method of the implementation......(and in this case I suppose I really can't use the interface.....)
    thanks.

    mickey0 wrote:
    I read around that is normal thing write Set<String> set = new HashSet<String>() in place of HashSet<String> set = new HasSet<String>();Just to add to George's good advice, the basic reason is that if you decide later on that your Set is better off as a TreeSet instead of a HashSet, you can simply change the assignement to
    Set<String> set = new TreeSet<String>();indeed, since all your methods will likely be coded to take Sets if you used the above method, you could probably change it to
    NavigableSet<String> set = new TreeSet<String>();without any problems.
    Moreover, If I got something right, the interface "could" not have "few" method of the implementation......(and in this case I suppose I really can't use the interface.....)The only method that HashSet has that Set doesn't is 'clone()'. Obviously, when choosing the interface, it should be as close as possible to to the capabilities you need.
    Winston

  • HT204266 My new iPad, when I try to get something from the Apple Store it tells me that My account isnot vlaid for use inthe U.S.store.  And to switch to the Australian store before purchasing, how do I do this?

    My new iPad, when I try to get something from the Apple Store it tells me that My account i snot vlaid for use in the U.S.store.  And to switch to the Australian store before purchasing, how do I do this?  I am in Australia?

    There are instructions on this page for creating an account without a credit card : http://support.apple.com/kb/HT2534
    You can download a copy of the iPad manual from here : http://support.apple.com/manuals/ipad/

  • HT5129 Every time I open iPhoto the dialogue box requiring me to do something before I can use iPhoto, how do I get rid of it?

    Every time I open iPhoto the dialogue box requiring me to do something before I can use iPhoto, how do I get rid of it?

    Click on the More Info button and ignore the web page, go to iPhoto's Accounts preference pane and delete the MobileMe account. Next to go the System/MobileMe preference pane and log out of MMe.  That will stop those messages.
    OT

Maybe you are looking for

  • Product Registration Uninstallat

    Ok so I've read a bunch of threads about just deleting the whole directory, but is there a way of actually just uninstalling this thing Not trying to offend Freesky who has been helping everyone with this, but I haven't seen anyone from creative veri

  • Installing RAC on Oracle Linux 6.3 using VMWare ESX

    Hi I have configured a pair of Linux servers following a guide on Oracle-base. Both servers have their own OS disks and they have four virtual disks that are shared between the two vm's (configured as sharable in VMWare using a separate SCSI controll

  • How to grant permission to user to access Lync 2013 OcsPowerShell

    I'm writing script for our first line for creating Lync users. I need give access to connect to https://lyncpool.domain.local/OcsPowerShell via powershell. Only users in CSAdministrator group have permission to connect, but this group have to much pr

  • Howto use methods inside itemRenderer

    Hi, I have basic itemRenderer made as component: <mx:Component id="ColorRenderer"> <mx:Label text="{rgb2hex(255,100,50)}" // This gives error: 1180: Call to a possibly undefined method rgb2hex /> </mx:Component> My method works if i use it with "norm

  • QT Pro versus iMovie 08

    Hi, I am very new to Mac and would like just a quick tidbit of info. I received iLife 08 with my new iMac so that I can edit my home movies together. As I have been having issues in other areas, I have noticed that many Mac users prefer QT Pro. When