Flight time calculation, js help

I hope you did not get too tired of my questions yet, but I learned a lot in the last days of this forum on this project and make me much better grasp on Adobe Livecycle.

My current problem and I hope before the end is a method to calculate the total time between the hours of departure and arrival of a flight I currently have the script from h to h, h and h, h to h and h. The question arose when I was told that it would take international travel and flights over 12 hours would be taken, that's why I added the date/time fields to enter date also. So far, my thoughts are going to write a conditional statement that indicates whether the date fields match, perform lag normal calculations but I don't know what to do if they do not match.

I was wondering if anyone had a better method or could help me to solve this problem with some built-in features with javascript or formcalc because I'm still new to this and not find them. Ideally, I'd like the person to enter a date and time of departure and arrival and then calculate milliseconds between the two and convert to hours. Any ideas or advice? I will attach a picture of the pdf to illustrate if everything goes well I am doing better and can send the file to someone who has ideas.

Thank you!

untitled.JPG

Hello

The rawValue of a date field will always be in the yyyy-mm-dd format, so you will need to reformat the code.  Try something like;

var d = / (\d\d\d\d)-(\d\d)-(\d\d)/.exec(DepartureDate.rawValue);

If (d! == null)

{

Departure of var = new Date (d [1], [2] d-1, d [3]);

util.printd ("dd mmm yyyy", start) + "" + (DepartureTime.formattedValue | "") ") +" "+ (DepartureTimeZone.rawValue |" ") ») ;

}

If you are happy with the display being "dd mmm yyyy" format then you can use the formattedValue rather property (as I did at the moment) and ignore the whole thing the conversion date.

The time domain that I use is a field of Date/time but has a format of data (on the link tab) of the time.  You do not get a time picker, but it adds a few smarts, if you type 11 it converts at 11:00.

I wrote a sample to test this, https://acrobat.com/#d=jRaH7EF * vPix7tBzF-n1JA

I used a drop down for the time zone, as you seem, but this could get quite long, as a number of places have been time of 30 minutes and my Windows machine has as GMT + 5:45 Kathmandu

I hope this helps.

Bruce

Tags: Adobe LiveCycle

Similar Questions

  • Why then download a clip is not clear, some of the writing, it is not clear how can a solution this? Thank you very much for your time and your help on this issue.

    Video playback that I just downloaded in my VLC it don't watch not clear enough to read Instructions, how can I make it clear to be able to read the Instructions? I thank very you much for your time and your help.

    It could be that the music is bad. It could be your software.

    Download the latest VLC Player.
    Post a public link to the clip.

    • see if there are updates for your graphics card disk drivers

    https://support.Mozilla.org/KB/upgrade-graphics-drivers-use-hardware-acceleration

    • Disable protected mode in the plugin Flash (Flash 11.3 + on Windows Vista and later versions)

    https://forums.Adobe.com/message/4468493#TemporaryWorkaround

    • turn off hardware acceleration in the Flash plugin

    https://forums.Adobe.com/thread/891337
    See also:

  • dml execution 2 statements at a time with the help of execute immediate

    I would like to run 2 DML statements at a time with the help of execute immediate usefulness,.

    ex:

    update employee set ename = 'Chantal' where eno = 123;
    Update dept set dname = 'IT' where dno = 345;

    I want the two statement to execute at a time, but I don't want to use any loop as well.

    Thanks in advance

    You can use:

    execute immediate 'begin update employee set ename='jagadeesh' where eno=123; update dept set dname='IT' where dno=345; end;';
    

    Although updates will always run one after the other.

    If you want the simultaneous treatment, then you need to use DBMS_JOB and DBMS_SCHEDULER to plan both work to run to run each of the statements independently.

  • need a little help with time calculation

    Hello

    I tried to implement oauth2 and youtube api. I can connect and can recover the access_token and other oauth required as expires_in json values.

    What I'm trying to do is drive if my access token is valid or not before making another call to their api - youtube gives a value - expires_in that normally contains 3600, which I suppose is seconds. I'm trying to add this time now using clock_gettime(), but I don't get correct values for my calculation - nowTime + expiresInt.

    Anyone can point out the problem with my code please? It could be a bad way to do it, but I thought that I spent a few hours on this subject before asking for help.

    Thank you.

    token = c.value("access_token").toString().toStdString();
        refreshtoken = c.value("refresh_token").toString().toStdString();
        saveValueFor("access_token", QString::fromStdString(token));
        string expires = c.value("expires_in").toString().toStdString();
        saveValueFor("refresh_token", QString::fromStdString(refreshtoken));
        struct timespec* start;
        clock_gettime(CLOCK_REALTIME, start);
        int nowTime = start->tv_sec;
        std::stringstream str(expires);
        int expiresInt;
        str >> expiresInt;
        nowTime += expiresInt;
        stringstream nowTimeString;//create a stringstream
        nowTimeString << nowTime;//add number to the stream
    

    Now you install milliseconds and seconds.

  • dialog remaining time calculation and then crashes...

    When you remove the desktop icons, the dialog box hangs after the display of the mention "calculating time remaining".

    Hello
     
    1. are you able to delete files from other locations without any problems?
     
    We recommend that you cross check if the problem persists in safe mode. To start the computer in safe mode, try the following steps.
    1 start the computer in the boot system key F8 continually tap water to get the menu "advanced boot options", from the menu select "safe mode" using the arrow keys and press ENTER to start.
    2 will take time to move to the screen drivers. Once you get the login screen, log in as "ADMINISTRATOR".
     
    For more information about safe mode, see this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
     
    You can also delete files using Disk Cleanup tool, visit this link for more information:
    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanup
     
    Try the steps and post back with the results, so that we can help you further.
     
    Kind regards
    Syed
    Answers from Microsoft supports the engineer.
  • How to add or subtract 2 times, calculation with the calculator of windows 7?

    For example:

    I want to add 2 different times as follows. More time is with the format hours: Minutes: seconds.

    H MM SS

    01:50:31

    + 2:20:30

    -------------------

    04:11:01

    How to perform this calculation of time with Windows 7 or any other Calculator calculator in Windows 7.

    Response.

    In your example:

    First add the hours, the minutes and the dry separately

    Hours = 1 + 2 = 3

    MN = 50 + 20 = 70

    Seconds = 31 + 30 = 61

    Now, to calculate whole minutes because of the second column:

    61 seconds/60 = 1.016 mins (approx.)

    Ignore the bits after the comma, and add whole minutes in the minutes column:

    MN = 70 + 1 = 71

    Calculate the seconds remaining:

    61. 60 = 1 second.

    Now, calculate hours because of the minutes column:

    71minutes/60 = 1.183 hours (approx.)

    Ignore the bits after the comma and add hours to the column of the hours:

    Hours = 3 + 1 = 4

    Calculate the remaining minutes:

    71 60 = 11 min.

    That is why total is:

    4 hours, 11 minutes, 1 second.

    The calculator is not a huge help to make these kinds of calculations because it works in decimal which means he cannot directly calculate/convert seconds/minutes/hours located in several of the early 1960s. If you had a spreadsheet like Excel you could set up (with a little work) to do this kind of thing.

  • Windows 7 service pack 1 for 64 home basic system refuses to download. Never went from 0% installed. Tried more than 10 times. Need help.

    See tittle for the description of the problem.  Why can you give us a service pack that some many people have trouble installing?  Its stupid.  Wasted my time and yours.  Please help with this and post the fix so that others don't have to go through this same process.

    Thank you
    Jeff

    Hello Wookie312,

    Thanks for your post.  Please follow the troubleshooting steps below and let us know the results of each utility.

    1. download / install and run the tool update system - CheckSur.  You can download the tool from the link below.

    Download the tool update system (64-bit)

    2. click Start type cmd (you should see the command prompt fill up) right click and select run as administrator

    Inside the command prompt, type sfc/scannow

    For more information regarding the file system checker.

    * If corruption is found, see How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    3. once the SFC is finished, check your hard drive for errors.

    4 restart the system update readiness tool. If errors have been eliminated, try to reinstall Service Pack 1. If this is not the case, go to step 5.

    5. perform a Startup Repair, when starting, try to install the Service Pack.

    We can't wait to hear back on your part.

    See you soon

  • Problem in flight simulator 2004. Help, please!

    Well hoping that someone can help me please with my problem on FS9. first of all, when I'm in the view of the flight deck I see not the hand of mouse as a result I can't click the lights and everything? My second question is that the scroll button allows me not to zoom in and zoom out? I've never had this problem before. can someone please teach me how to solve the problem... Thank you

    Hello


    As your question is about Flight Simulator, I suggest you obtain in contact with the support of Flight Simulator for assistance.
    I hope this helps!
  • Time protection real HELP in MSE stopped working after running the utility in Windows Live OneCare cleanup tool?

    Protection in real time in MSE stopped working after running the utility in Windows Live OneCare cleanup tool? Error Code: 0x800705b4

    Hello Wally,

    Thanks for posting your query on the Microsoft Community.

    The question error codes and the description that you get suggests that you are facing problem when using MSE. This problem may occur if other security software, such as antivirus, antispyware and antimalware programs, are totally or partially installed on the computer.

    I suggest to change firewall security settings or disable temporary security on the system software and try using MSE and see if it makes a difference. How to temporarily disable security software, you can view the article mentioned below.

     

    Disable the antivirus 

    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attack.

    For more details, please see the article mentioned below and see that it helps you to fix the problem.

    Real-time protection lights in Microsoft Security Essentials

    Hope that the information provided is useful. Let us know if you have any concerns related to Windows. We will be more than happy to help you.

    Kind regards

  • Using two buttons market timer / stop, need help please.

    Hey everybody.

    I am stil working on my project, and now I'm trying to implement a timer using two buttons market / stop. Everything I do now is when you press start the stopwatch starts and when you press stop I want the timer to stop and display the time.

    Whats happening is when I press start, the timer starts, but when stop is pressed the timer displays a value of say 12 seconds, a second more later I press stop again a value of 14secs arise and it stops at 14.  Now, whenever I press on start it will start at 14 and repeat this process.

    So I think that somewhere, I did not put my right timer.

    Could someone say somethings that I should change in my code.

    They are declared at the top:

    static public boolean status=false;
    static public int count=0;
    static public Timer timer;
    

    Here is my code:

    ButtonField start = new ButtonField("Start",ButtonField.USE_ALL_WIDTH|                          ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                          start.setChangeListener(new Listener1());add(start);
    
    ButtonField stop = new ButtonField("Stop",ButtonField.USE_ALL_WIDTH|                            ButtonField.FIELD_HCENTER|ButtonField.USE_ALL_HEIGHT);                            stop.setChangeListener(new Listener2());                          add(stop);          
    
                public class Listener2 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer is at" + Integer.toString(count));            status = false;            timer.cancel();            }            }
    
                public class Listener1 implements FieldChangeListener            {            public void fieldChanged(Field field, int context)             {            ButtonField btn = (ButtonField) field;            Status.show("Timer started");            status = true;                try                {                                                timer = new Timer();                                        timer.scheduleAtFixedRate(new StartEvent(),1,1000);                }                catch(Exception e)                {                //do nothing                }            }
    
        private class StartEvent extends TimerTask    {    public void run()       {        if(status = true)              {              count++;                        }        else            timer.cancel();//        count=0;    }    }    }
    

    any help is appreciated

    Thank you guys

    Probably best to follow just a matter of a Thread.  So next time, you can start a new Thread with a new question.  However, you should also search the forum before asking questions, that your two supplementary questions have been answered in other posts on this forum.

    Concerning your problem to press the stop and get another moment, I think that you must have application logic that disables the stop button once pressed, until you press the Start button.  For example, you could do by assigning to the time of departure - 1 in the Stop button, and then, when you press the Stop button, he can check the start time and displays a message saying "Timer not started" If the start time is - 1.  There are a number of other ways to do this, I described this method because it is easy to explain.  It is not really how I'd do.

    The best way to set the buttons next, is to add then to a HorizontalFieldManager, then add the HorizontalFieldManager to your screen.

    To stop the button displays the menu, you must set it with the style CONSUME_CLICK, for example:

    ButtonField stopButton = new ButtonField ("Stop", ButtonField.CONSUME_CLICK);

  • Denote absolute time and absolute time calculations

    We have Oracle database 11g in our production environment on RHEL 5.8 Virtual machine using VMware. The database version is 11.2.0.3.0.

    I have a certain scenario here, I want the code of the logic of a trouble ticket solution. The working hours for problems resolution ticket is 8 am-8 pm and resolution time is 4 hours. Now if a ticket will be logged at 18:30, his expected resolution time should be 10:30 the next day (1.30 hours of standby and 2,30 hrs the next day). I am not able to understand as below:

    1. How to write a subtraction of absolute time from 20:00 to 18:30 (18:30 can be a DB column so it is fine). The main concern here is how represent absolute time of 20:00.
    2. Subsequently, also how to add time of 08:00 the next day

    I hope that I was able to explain the application of absolute time representation and also calculations with it.


    Please get back with the answer to my query.


    Concerning

    with inp as

    (select sysdate log_time to double

    Union all select trunc (sysdate) + numtodsinterval (6.5, 'hour') of double

    Union all select trunc (sysdate) + numtodsinterval (18.5, 'hour') of double

    )

    log_time Select to_char (log_time, "dd-mm-yyyy hh24")

    to_char (case

    When log_time - trunc (log_time)< 8="" 24 ="" then="" trunc(="" log_time="" )="" +="" (="" 8="" 24="" +="" 4="" 24="">

    When log_time - trunc (log_time) > 20 / 24 then trunc (log_time) + (1 + 8 / 24 + 4 / 24)

    When log_time - trunc (log_time)< 20="" 24="" -="" 4="" 24="" then="" log_time="" +="" 4="">

    of another trunc (log_time) + (1 + 8 / 24 + 4 / 24 + (log_time - trunc (log_time) - 20 / 24))

    end, "dd-mm-yyyy hh24") expected_resolution_time

    the NPI

  • Date/time of events help

    I'm doing vpet like game on flash for the class, but I need to work with time and dates of events such as the power, sleep, etc.

    At least for now I need help, find ways to check the game like every 5 minutes to bring up an alarm on the pet who need food.

    Unfortunately, all I have is the following:

    Stop();

    const millisecondsPerMinute:int = 1000 * 60;

    const millisecondsPerHour:int = 1000 * 60 * 60;

    const millisecondsPerDay:int = 1000 * 60 * 60 24;

    var date1:Date = new Date();

    trace (date1);

    I get the actual date, but don't know exactly what to do to have it checked every 5 minutes approximately. Don't know if it's with 'if' or ' do / while '.

    do not use the class date, use the timer class.

    var feedTimer:Timer = new Timer(5*60*1000,0);

    feedTimer.addEventListener (TimerEvent.TIMER, feedF);

    feedTimer.start ();

    whenever vpet is powered, apply a reset() and start() to feedTimer:

    function beenfedF (): void {}

    feedTimer.reset ();

    feedTimer.start ();

    }

    function feedF(e:TimerEvent):void {}

    a diet has been missed

    }

  • Database queue time calculation.

    Hi, I use 10.2.0.4.0 oracle version.

    I need to find the queue time total for each day for each WAIT_CLASS and need to trace trends in the last days. I use the application below to get the details, but my results do not match with the ones I get in the AWR report. In my daily report AWR, "USER i/o" is coming in higher class waiting times, where as in my query, I get 'Application' on the highest expectation section. Total wait time is also different. Can you please help me to understand, what don't understand me in the query?
    SELECT  wait_class, 
         TO_CHAR (MIN (s.end_interval_time), 'DD-MON-YYYY DY HH24:MI')
             sample_end,
            SUM (WAIT_TIME + time_waited)  waittime
     FROM dba_hist_active_sess_history q, dba_hist_snapshot s
    WHERE   s.snap_id = q.snap_id
          AND s.dbid = q.dbid
          AND s.instance_number = q.instance_number
          AND s.end_interval_time >=
                 TO_DATE (TRIM ('16-Oct-2012 '), 'dd-mon-yyyy hh24:mi:ss')
          AND s.begin_interval_time <=
                 TO_DATE (TRIM ('18-nov-2012 '), 'dd-mon-yyyy hh24:mi:ss')
         AND wait_class in ('User I/O','System I/O','Concurrency','Commit','Other','Configuration','Network','Application','Administrative')
     GROUP BY trunc(s.end_interval_time),wait_class
    ORDER BY trunc(s.end_interval_time),waittime desc
    SELECT Trunc(end_interval_time),
           wait_class,
           SUM(time_waited)
    FROM   dba_hist_service_wait_class
           join dba_hist_snapshot USING(snap_id)
    GROUP  BY Trunc(end_interval_time),
              wait_class
    ORDER  BY Trunc(end_interval_time),
              wait_class; 
    

    Published by: JohnWatson on 7 November 2012 16:34
    Formatting.

  • Error calculation page - help?

    I have a problem with my sql on a calculation of page - can I get some suggestions?

    I get the following error,
    PLS-00103: encountered the symbol "SELECT" when expecting one of the following numbers: (- + case new mod...)

    Point page P3_ACCOUNT is updated by calculation after submit
    Body of the PL/SQL function
    declare 
      v_account varchar2(50);
    Begin
    IF      
    (select account from assignments where emplid = :P2_ID
         and end_dt is null) like 'BENCH'
         then v_account:='BENCH';
         
    ELSIF     
    (select count(account) from assignments where emplid = :P2_ID
         and end_dt is null)>1
         then v_account:='LEVERAGED';
         
    ELSE    
    v_account:=(select account from assignments where emplid = :P2_ID
         and end_dt is null);
    
    END IF;
    
    return v_account;
    
    End;
    As you can probably, I read the "assignments" table for all values of 'account' where the 'end_dt' in the folder is set to null. This sometimes means multiple selected records, whereby case -.
    If one is "BENCH", then return "BENCH".
    ElseIf there is more than one record is returned, return "LEVERAGED".
    otherwise return some 'account' is (single record returned)

    I appreciate your help.

    Rich

    Hello

    Don't think that you can make statements like this example of direct comparisons with sql statements.

    Best place to first store the result in a variable.

    e.g. select count (*) in the table v_count where conditions; If v_count > 1 then etc.

    http://www.java2s.com/Tutorial/Oracle/0440__PL-SQL-statements/Selectcountvalueintoavariable.htm

    Van
    Trent

  • TIMER PROBLEM! Help, please! AS3

    I have this drag and drop shape game... I have this again "try" button Reset the timer, the score and the location of movable forms and «start' button that starts the timer and like «10,9,8,7...» until she paid 0 and "try again" and "next" button will appear... my main problem is, whenever I have click the "try" button again, and then click 'Start'... my timer increment decrement State... first he "10,9,8,7.." then when I click on try again and click Start Timer will '10,8,6,4... '. then when I click on try again and again it goes "10,7,4.." would you help me on this... I want this decrement, only 1 number at the same time I have click on try twice the key... Thanks in advance

    Stop();

    import flash.events.KeyboardEvent;

    import flash.utils.Timer;

    import flash.events.MouseEvent;

    var countDownIncShapes:Number = 1;

    var totalSecsShapes = 10;

    var countDownSecsShapes = totalSecsShapes;

    var score_Shapes:int = 0;

    next14. Visible = false;

    tryAgain14.visible = false;

    var timeShapes:Timer = new Timer(countDownIncShapes*1000);

    var dragArrayShapes:Array = [square14, triangle14, circle14, rectangle14];

    var matchArrayShapes:Array = [tv, pyramid, ball, envelope];

    var posArrayShapes:Array = [{x: 1113.7, y: 205.90}, {x: 812, y: 205.90}, {x: 207.55, y: 205.90}, {x: 506.25, y: 205.90}];

    var currentClipShapes:MovieClip;

    var Shapes_startX:Number;

    var Shapes_startY:Number;

    Start_Shapes.addEventListener (MouseEvent.CLICK, startShapesdrag);

    function startShapesdrag(e:MouseEvent):void

    {

    timeShapes.start ();

    timeShapes.addEventListener (TimerEvent.TIMER, tickShapes);

    function tickShapes (e:TimerEvent): void

    {

    If (counterShapes.text is "0")

    {

    timeShapes.stop ();

    countDownSecsShapes = totalSecsShapes;

    circle14.buttonMode = false;

    square14.buttonMode = false;

    triangle14.buttonMode = false;

    rectangle14.buttonMode = false;

    circle14. RemoveEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    square14. RemoveEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    triangle14. RemoveEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    rectangle14. RemoveEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    If (scoreShapes.text > = "300")

    {

    next14. Visible = true;

    tryAgain14.visible = true;

    tryAgain14.addEventListener (MouseEvent.MOUSE_DOWN, tryAgain14_onMouseDown);

    next14.addEventListener (MouseEvent.MOUSE_DOWN, next14_onMouseDown);

    }

    If (scoreShapes.text < "300")

    {

    tryAgain14.visible = true;

    tryAgain14.addEventListener (MouseEvent.MOUSE_DOWN, tryAgain14_onMouseDown);

    }

    }

    on the other

    {

    countDownSecsShapes = countDownSecsShapes - 1;

    counterShapes.text = countDownSecsShapes;

    circle14.buttonMode = true;

    square14.buttonMode = true;

    triangle14.buttonMode = true;

    rectangle14.buttonMode = true;

    trylang.addEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    circle14.addEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    square14.addEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    triangle14.addEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    rectangle14.addEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    }

    }

    }

    function shapesItem_onMouseDown(event:MouseEvent):void

    {

    currentClipShapes = MovieClip (event.currentTarget);

    Shapes_startX = currentClipShapes.x;

    Shapes_startY = currentClipShapes.y;

    addChild (currentClipShapes);

    currentClipShapes.startDrag ();

    stage.addEventListener (MouseEvent.MOUSE_UP, shapesStage_onMouseUp);

    }

    function shapesStage_onMouseUp(event:MouseEvent):void

    {

    stage.removeEventListener (MouseEvent.MOUSE_UP, shapesStage_onMouseUp);

    currentClipShapes.stopDrag ();

    var indexShapes:int = dragArrayShapes.indexOf (currentClipShapes);

    var matchClipShapes:MovieClip = MovieClip (matchArrayShapes [indexShapes]);

    If (matchClipShapes.hitTestPoint (currentClipShapes.x, currentClipShapes.y, true))

    {

    currentClipShapes.x = posArrayShapes [indexShapes] .x;

    currentClipShapes.y = posArrayShapes [indexShapes] there;

    currentClipShapes.removeEventListener (MouseEvent.MOUSE_DOWN, shapesItem_onMouseDown);

    currentClipShapes.buttonMode = false;

    score_Shapes is score_Shapes = 100;.

    scoreShapes.text = score_Shapes.toString ();

    }

    on the other

    {

    currentClipShapes.x = Shapes_startX;

    currentClipShapes.y = Shapes_startY;

    }

    }

    function next14_onMouseDown(e:MouseEvent):void

    {

    gotoAndPlay (15);

    }

    function tryAgain14_onMouseDown(e:MouseEvent):void

    {

    square14.x = 1110.15;

    square14.y = 533.75;

    circle14.x = 227,05;

    circle14.y = 541,3;

    triangle14.x = 818.85;

    triangle14.y = 537;

    rectangle14.x = 506.30.

    rectangle14.y = 529.85;

    score_Shapes = 0;

    scoreShapes.text = "";

    counterShapes.text = countDownSecsShapes;

    tryAgain14.visible = false;

    next14. Visible = false;

    timeShapes.reset ();

    Start_Shapes.addEventListener (MouseEvent.CLICK, startShapesdrag);

    }

    If you are out of the frame that contains the button of your Start_Shapes you will need to add this listener each time you come back on the frame with _Start_Shapes.

    Thus, it may be your timer listener that is causing the problem.  and when I checked I see a known problem: you're nesting functions named.  never do this:

    function startShapesdrag(e:MouseEvent):void

    {

    timeShapes.start ();

    timeShapes.addEventListener (TimerEvent.TIMER, tickShapes);

    function tickShapes (e:TimerEvent): void

    {

    .

    .

    .

    }

    }

    should be

    function startShapesdrag(e:MouseEvent):void

    {

    {if (! timeShapes.hasEventListener (TimerEvent.Timer))}

    timeShapes.addEventListener (TimerEvent.TIMER, tickShapes);

    }

    timeShapes.start ();

    }

    function tickShapes (e:TimerEvent): void

    {

    .

    .

    .

    }

Maybe you are looking for

  • iOS 9.3.5 drained battery

    I've updated the 4S of my wife and my own SE for this latest version. The next morning, the two phones have completely drain the battery. Is this related? Both phones are very little used. My wife phone normally last 3 days & my SE 5-6 days. Both had

  • Not found audio input device

    When you record a voice on the audio input device says iphone not found. In the micro-life the iMovie app does not appear. What should do? Thanks Pierre

  • MixedGraph control

    Hello I'm working on an application that controls several valves, flow control, temperature and pressure. It works (or almost... I have problems with a Brooks controller...) but now I have problems with mixed graph: he doesn't obey! I attach here two

  • Error blue screen - Stop: 0x0000000A (0 x 00000001, 0x81AIEFE9, 0 x 00000054, 0x0000001B)

    I recently had a lot of blue screen errors and I took a lot of steps in my attempt to deal with them.  I have updated and uninstalled the drivers who had the yellow exclammation mark next to them in the Device Manager.  I ran Microsoft Memory Diagnos

  • Designjet T520 printing with ink cartridge empty

    can a t520 print (black) even if a color cartridge is empty or the printer stops all functions until the replacement of the cartridge? We intend to replace a hp not by a T520 tracer (go maybe later us to the 2500 series) and especially question is a