How to stop as files from running until a certain frame

Hi all,
I have a simple flash game with two frames at the moment.
Most of the stuff that happens is in as files linked to
different movie clips.
I orignially only had one frame my background frame and when
testing I just press ctl+enter and bamm away it goes the
actionscript runs as soon as the movie/game starts and ergo the
game plays.
My problem is this, I now want to have a start/home frame at
the beginning (of course) which has the start game button on which
when clicked THEN starts the game.
Currently the game starts in the first frame along with the
start button :(
How do I stop the game running straight away and my first
frame only contains the start button, which when clicked then goes
to the 2nd frame and starts the game?
Reagrds,
Red.

A friend resolved the issue for me;
By renaming the main contrustor and calling this in the start
button Example action script applied to the button:
START OF ACTION SCRIPT
import flash.events.MouseEvent;
stop();
startBTN.addEventListener(MouseEvent.CLICK, startClick);
function startClick(event:MouseEvent):void
trace ("Button clicked");
gotoAndStop(2);
gameGo();
/*gameGo() is the renamed main document class, renaming it
prevents it from been run instanly
and it is called from the button*/
END OF ACTION SCRIPT

Similar Messages

  • How to stop copied files from being automatically trashed

    so this has only been happening recently, in the last 2-3 weeks.
    if i choose a file, say "example.txt" and duplicate it, adding "example copy.txt" to the desktop, within a couple seconds, it gets automatically placed in the trash.
    if i rename the copy to "example.2.txt" and move it back to the desktop, it'll stay. so it's not an issue of identical files being trashed. if i take it and name it back to "example copy.txt" it gets placed in the trash again automatically.
    how do i stop this? it's driving me mental because i have to go retrieve everything i copy from the trash bin. i'm sure i haven't downloaded any automators or anything, so any kind of input would be beneficial.
    thanks!

    whats the type n contents of this files.it is text only pipe seperated.
    have u specified the bad or log file path while creating the external file.no I do not. I use simple UTL_FILE for writing to these files but it does generate .log all the time and sometimes .bad whenever there is some problem.
    the sample script used for create external table is mentioned below.
    CREATE TABLE "XX"."E_ERROR_LOG"
    (     "SERVER_ID" VARCHAR2(24),
         "MONITOR_ID" VARCHAR2(24),
         "XXX_ID" VARCHAR2(8),
         "XXX_SUBTYPE_ID" VARCHAR2(8),
         "ERROR_CODE" VARCHAR2(6),
         "LOG_TIMESTAMP" VARCHAR2(19),
         "ERROR_MESSAGE_BODY" VARCHAR2(1024),
         "XXXX_MESSAGE" NVARCHAR2(1024)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "XXXX"
    ACCESS PARAMETERS
    ( records delimited by newline
         fields terminated by '|'
         missing field VALUES are NULL
    LOCATION
    ( 'DF_XXXX_ERRORLOG_DATA01.dbf'
    REJECT LIMIT UNLIMITED;
    ----------------------------------------------------------------------------------------------------------

  • We were wondering how you stop some apps from running with out deleting them something like a task manager and in my settings im missing the application button in it how do i get it back and stop some apps its making it run really slow

    how do you stop apps with out deleting them i have looked for something like a task manager and nothing and researched about it and it says to go into your settings and then click applications but i dont have one can someone please help[ me thank you

    Double click the Home button. The bottom row shows the recently used apps. Touch and hold the app until they all start to wiggle then tap the circled minus sign by apps you want to remove. Press the Home button to return to normal.
    However, that is recently used apps not apps doing something. Some apps will do things all the time/periodically like checking for Notification, new mail. Yu can turn those off in the apps themselves.
    Just what are you trying to accomplish?

  • How to stop a process from running and display a message

    I have a button that inserts data into a table based on bind variable selected on the page. I would like to add code to that button that will check to see if certain data already exists in the table, for that bind variable, and if that data already exists, stop the process and display a message that says "you have already inserted that information - bla bla bla". If not, continue inserting. What would be the best way to do this?
    Currently, the button is a plsql that inserts the data.
    Any help or examples would be greatly appreciated!
    mholman
    Edited by: user10488561 on Jul 27, 2009 8:48 AM

    Use a validation process for that. If the validation fails (data exists) the processes will not be run. If it doesn't then the processing will continue.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • How to stop a dialog from running

    I have an appliaction that opens a splash screen dialog when it starts.
    I want to put a 'Cancel' button on the splash so that I can abort the application.
    I wnat to know if there is any way to do this without calling System.exit()?

    Hi,
    You should be able to call dispose on the dialogs' parent which hopefully will be your main window. That should do it.
    Regards,
    Manfred.

  • How to stop Time Machine from backing up Temp Files?

    Hi folks!
    I am trying to find out how to stop Time Machine from constantly backing up 'useless' temporary files accumulated from web browsing? Although I don't change or add large files to my HD, Time Machine backs up hundreds of MBs every hour. Those file amounts make sense when I consider that I browse a lot to YouTube, SoundCloud, etc to watch videos or listen to music - I just don't want them to be backed up.
    Under Time Machine Options I already excluded the following items from backups:
    ~/Library/Caches
    /Library/Caches
    ~/Downloads
    But even though I did this weeks ago, Time Machine stills finds large files to be backed up every hour and my only guess is that I am still missing a location where either Safari or Firefox - the two web browsers I use - store temporary files.
    Can you help?
    Thanks a lot in advance!

    oas2103 wrote:
    they come from my anti-virus software
    Are you sure you need that? There are no viruses that run on OSX. None. Zip. Zero.
    If you're running Windoze on your Mac, that's the same as running it on a PC, so it needs all the same anti-everything stuff you'd use on a PC.
    There is some "malware," such as Trojans, for Macs, though. But (unlike viruses that can get onto your system without your knowledge), you must approve their installation (via your Admin password) and/or operation (via the "This application was downloaded from the internet ..." prompt).
    Appropriately enough, some of these Trojans are included in pirated versions of Apple software, such as iWork!
    For the gory details, see Thomas Reed's [Mac Virus Guide|http://www.reedcorner.net/thomas/guides/macvirus].
    Thanks a lot again!
    You're quite welcome, and thanks for posting back.

  • How do I migrate files from MacBook running OS 10.4.11 to new MacBook Pro running OS 10.6? Thanks.

    How do I migrate files from my MacBook (specs below) to my still in the box MacBook Pro running OS 10.6?  Yesterday, I ran Software Update; it returned the message that all my software was up to date / no updates available.
    I am particularly concerned with moving the 7000+ photos in iPhoto.  I have photos organized into folders and albums and want to preserve this structure.  I use this photo data as part of my lecture content.
    Thanks for your help.
    Best,
    lauri with poodles
    (the big standard poodles without the goofy Hollywood haircuts)
    Specs -  Old laptop
    MacBook 13"
    OS 10.4.11
    2 Ghz Intel Core 2 Duo
    2 GB 667 Mhz DDR2 SDRAM
    112 GB total disk space
    59 GB available
    using  iPhoto 6.0.6
    Specs - New laptop
    MacBook Pro 15"
    OS 10.6
    2.0GHz Quad-core Intel Core i7
    4GB 1333MHz DDR3 SDRAM - 2 x 2 GB
    128 GB Solid State Drive

    Hi, Lauri. Welcome to Apple Support Communities.
    http://web.me.com/pondini/AppleTips/Setup.html
    From Ronda with Pomeranians.

  • How can I stop my battery from running out in my in my iphone 5 with the new i0s7

    how can I stop my battery from running at a super fast rate on my in my iphone 5 with the new i0s7, ever since I upgraded I am needing to charge up at least 3 times a day.

    https://discussions.apple.com/message/23361957#23361957

  • Stopping a thread from running

    Hai
         I am new to java. It would be helpful for me if someone helps me out in doing this.
         Actually in my program ,I should
    i. Find out whether a particular file exists in the given directory or not.
    ii. If the file doesn't exist, my program should wait for certain timeframe and check for the same file again.
    iii. If the program cannot find the required file within the timeout specified, my application should exit.
         I have done (i) and (ii) using threads. But in the case of (iii), I came to know that stop() method is depricated.
         I am providing my code for a better understanding. Could you please let me know, what would be the best way to stop the thread from running after the timeout is reached in my program?
    Thanx in advance
    import java.io.File;
    public class Fileexists implements Runnable
    static Thread t;
    public static void main(String[] args)
         System.out.println("creation of object");     
         FileExists test = new FileExists();
         t = new Thread(test);
         t.start();
    // run method
    public void run()
         File f = new File("searchfile.txt");
         boolean b = f.exists();
    System.out.println();
    if(b == false)
    System.out.println("Required file doesnot exists");
    try
         t.sleep(20000);
    catch (InterruptedException e)
         // TODO Auto-generated catch block
         e.printStackTrace();
              t.run();
    else
    System.out.println("Required file found");
    } // end of run()
    } // end of FileExists class

    Actually your use of threads is a difference which makes no difference. The JVM starts an initial thread and runs your main(), at the end of which you start a thread and return. So you've just replaced one thread with another. There's no parallel processing.
    The t.run() at the end of your run() method won't work. A particular Thread object can only run once. It will give you an IllegalStateException.
    I can't see how multi-threading will help you with this task at all, all you need is a simple loop with a Thread.sleep in it.
    If you really want to use a separate thread or Timer to implement a timeout (as an exercise) then use Thread.interrupt() to wind up a thread. The looping thread should test with Thread.interrupted() in it's loop condition, if it's in sleep() when interrupted an InterruptedException will be thrown which you should catch and allow to break the loop and let the thread terminate.
    So your loop structure looks like:
    try {
    while(!Thread.interrupted()) {
        ...  do your test
        Thread.sleep(.....);
      System.out.println("Thread terminated by detecting interrupted");
      } catch(InterruptedException ex)  {
         System.out.println("Thread interrupted from sleep");
    You can get the Thread for the main thread simply by storing Thread.currentThread() in a Thread reference.
    I'd suggest using a java.util.Timer to launch your time-out and leave the loop on the main thread started by the JVM.

  • How to stop the executable from starting when opened

    Hi Guys,
    I am building an exe with the application builder. I am not able to find a way to stop the exe from running when opened. I dont need the exe to run. I know I m missing a very basic step here but I m not able to do that.
    Could anyone explain me how to do this.
    Regards,
    Nitin

    Hello,
    This is Dominic L. from Applications Engineering at National Instruments. This was reported to R&D (CAR#41DAPUQU) and was fixed in LabVIEW 8.2.1. Here is a link to the current evaluation software download for LabVIEW:
    http://digital.ni.com/demo.nsf/websearch/14f9ce475127ade786256ac60070926c?opendocument
    This particular bug actually renders all the build options for source file settings unusable. While the other options can be set manually in the source VI properties, the start-up VI will always run when an executable is opened.
    Here are three different workarounds to this:
    Option 1 - Upgrade to 8.2.1. 
    Option 2 - Check "Enable debugging" and "Wait for debugger on launch" in the Advanced page of the build specification. One side effect is this will include the block diagrams of the VIs and extra code for debug tool support. Note that if you don't protect the source code (block diagram), it kind of defeats the purpose of creating an executable.
    Option 3 - Use a dummy startup VI to launch the desired startup VI.
    For the third workaround, the attached "Dummy Startup VI.vi" uses VI server to open the desired startup VI's front panel and then closes.  To use the Dummy Startup VI follow these steps:
    Add the Dummy Startup VI to the project.
    Open the Dummy Startup VI and change "Main VI.vi" to the VI you would like to open but not run in the project and save.
    In the source files page of the build, select the Dummy Startup VI as a startup VI and the VI you would like to open but not run as a support VI.
    Build and run.
    I hope this helps.
    Have a great evening!
    Best Regards,
    Dominic L.
    Attachments:
    Dummy Startup VI.vi ‏12 KB

  • Stop the report from firing until the user clicks the Go button?

    Hi All,
    Is there a way to stop the report from firing until the user clicks the Go button? At the moment it is populating when I open the dashboard page. I found something online that said i could use the Page Options>Save Current Settings> For Others.. but even though i am signed in as an administrator i only see a For Me.. option. Also, even after setting this option i would like to be able to hit the 'Go' button to run the report and have it uncollapse the section. Is this possible?
    Thanks

    Thanks for the replies,
    In my report i am trying to constrain the report to todays data only. However the only prompt i have is for another column. If i place a filter on the date column with Year=0000 it will not change with the prompt selection and so will never return any results. Is there any other way?
    It seems wasteful to fire a request to the database onload of the page. Is there an option to only fire a request what the prompts are entered? I will be using a stored proc which needs parameters to run the request so it would be good to be able to set the report to not run until it has parameters entered
    Thanks

  • How can I transfer files from one external HD (WD My Passport) to another external HD (Seagate Backup Plus)?  WD drive was improperly ejected and Finder no longer recognizes it.  Tried fixing with Disk Utility but failed.

    How can I transfer files from one external HD (WD My Passport 2T) to another external HD (Seagate Backup Plus 2T)?  WD drive was improperly ejected (although we did tell it to eject) and now Finder no longer recognizes it.   Using MacBook Pro and I just upgraded to Yosemite before this happened. Was told at Apple Store to use Disk Utility to repartition, but it failed.  It says to backup files and restore.  But how do I backup files?  Or would appreciate any other suggestions to repair drive.

    You may drag & drop between external hds. 
    Should you run into trouble.
    Take the exernal drive appart.  Take out the harddrive.  Try reading the data via a usb adapter. Put a household finan on the hd.
    http://www.cablewholesale.com/products/usb-firewire/usb-2.0-products/product-40u   2-01000.php?utm_source=Nextag&utm_medium=cpc&zmam=54972865&zmas=1&zmac=4&zmap=4 4 77

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • How can I transfer files from my mac to my iPad, e.g., mp4 files.  Do I have to use iTunes?

    How can I transfer files from my mac to my iPad in an easier way?  I'd like to put some movies on, and I can use iTunes, but is there another way?  I have transferred epub books using Dropbox.  Movies eat up a lot of dropbox space and the iPad has trouble getting them.

    USB disk. You still have to go through iTunes.
    Connect device to computer/mac
    Select your device in iTunes menu.
    Apps...
    At thebottom of the page you will see the app.
    Select it and the Add for windows and + for mac
    Hope that helped.
    In the long run there is no way to access or uplood data on your device without iTunes unless you JailBrake....

  • How do i transfer files from old mac with frozen screen?

    My PowerBook G4 just froze. I bought a new MacBook Pro. How do I transfer files from my old mac to my new one. I have firewire cable with firewire adapter for the new Mac. And the old mac has a disk that won't eject.

    Turn your PowerBook off. Connect both computers with the firewire cable and then start your PB in Target Disk Mode (press the T and the power button at the same time, and keep the T pressed until your PB's hard drive mounts on the MBP's desktop. Then, you can use Migration Assistant, or good ol' drag and drop, your call.
    If your PowerBook cannot enter Target Disk Mode, then you have bigger problems...;-)

Maybe you are looking for