Question of event times

Hi, after I look at the thread:

Repeat after x seconds?

I have a question about the time show, can you do something is disabled for an amount of seconds too? For example: you have a variable that you want to go 'false. ' If you click on 'Right' or something, and after a second or two, the variable go "true." Once again. What I really want to achieve here, it's that during an animation a variable will disable if you cannot for a game example animation "attack" while the animation of 'walk' is turned on.

These two snippets are in the different fields of application.

remove the code from your movieclip and attach it to an image.  There is never a reason for attaching code to an object, and there are several reasons to avoid this.

your_mc. Speed = 3;

your_mc. Moveable = true;

{your_mc.onEnterFrame = Function ()}

{if (Key.isDown (Key.up))}
This.Moveable = false;

setTimeout(resetF,1000,this);

}

If (Key.isDown (Key.Left) & this.moveable) {}

This ._x-= speed;

}

}

function resetF(mc:MovieClip) {}

MC. Moveable = true;

}

Tags: Adobe Animate

Similar Questions

  • How long should you wait after badly answering security questions too many times in a row

    How long should you wait after badly answering security questions too many times in a row

    How long should you wait for what? If you have temporarily disabled your account screen should say how long you have to wait until you can try again. If you mean for the reset link show on your account then does not appear if you have an e-mail address of verified relief on your account, if you have not you don't you must follow the section "If you can not reset your security questions" at the bottom of the page you have posted since

  • Event time missing in iCalendar El captain

    Since the upgrade to El Cap", apparently I have more option of > iCal Preferences > General > Show events time.

    Is there a work around for the time of the event see according to iCal monthly?

    All entries received with gratitude - thanks in advance

    JWA,

    Have you tried to expand the window to display the month?

  • I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I go back in just the Quicken file and restore it until I downloaded the update do I have to restore the entire

    I have a question about the time machine. I recently updated my Quicken 2015 and there was something wrong with the update. Can I come back in all the Quicken file and restore from time Machine before I downloaded the update to do, I need to restore the entire computer?

    Yes, you can just restore this file or application. Use Time Machine to back up or restore your Mac - Apple Support

  • New in AS3: stupid question about event listeners...

    Hi all

    I am a newbie in Flash and have a question about event listeners. I have a site I'm developing with a movie clip navigation which is composed of several buttons. What is the right way to write the event listener?

    Here's a sample of what I have:

    I have a clip called 'buttons_mc' that contains the symbols of individual button with various names such as "btn_history". So far, I don't have an instance name for the clip of the film itself.

    My event listener:

    btn_history.addEventListener (MouseEvent.CLICK, history);

    I have to put something before the "btn_history" which refers to the video? I get this error message:

    1120: access of undefined property btn_history.

    Thank you!!!

    Julia

    Yes, it is preferable to have at least one layer dedicated to actionscript.  I often use a couple... one for code shared (functions and variables) and a level of the frame code (stop(), etc.).

    The code must be in a scenario where the button is directly accessible.  If your button is accessible in frame 1, which means that it does not animate in place such that it is not really intended to be used until you get somewhere near the bottom of the timeline, then you can target the button of the timeline that holds the buttons_mc movieclip.  So as I described earlier, if you give this movieclip an instance name of "buttons", and then to assign a code to the button on the inside you should use...

    Buttons.btn_history.addEventListener (MouseEvent.CLICK, history);

    But if the button exists somewhere down the timeline inside the buttons_mc due to the animation of the button, which means that there is more than one key image for the button, then you must place the code that you have initially shown in the last keyframe to the bottom of the timeline where he set the button in place.

    .

  • Question touch event for mutil - Manager on a screen

    Hi all

    I will say the case:

    I have a screen there is a main VerticaFieldManager that holds two VerticalFieldManager and a field

    the two children-VerticalFieldManagers hold some LabelField.

    When one of them is selected, it will be lit high.

    Then, extending from screen and override touchEvent() and shows a "Hit" said dialog and highlight the OK field.

    because the touchEvent is a shipped process, where the touchEvent occur, each field will receive this event.it never check what field is developed and send the event in this area, (if I'm wrong, please advice).

    Here's the question.

    When user getX and getY to get point touch, then the user getFieldAtLocation on crib, if X / is greater that the extensions Manager, RIM API returns the field expanded.

    This does not look good.

    Here is my source code:

    /*
     * VFMTester.java
     *
     * © , 2003-2008
     * Confidential and proprietary.
     */
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.system.*;
    import net.rim.device.api.servicebook.*;
    import net.rim.device.api.ui.container.*;
    
    /**
     *
     */
    public class VFMTester extends UiApplication{
        public static void main(String args[]){
            UiApplication app = new VFMTester();
            app.enterEventDispatcher();
        }
        VFMTester() {
            pushScreen(new AScreen());
        }
    
        class AScreen extends MainScreen
        {
            VerticalFieldManager vfm;
            public AScreen()
            {
                super();
                vfm = new VerticalFieldManager();
                vfm.add(new LabelField("Test",Field.FOCUSABLE));
                VerticalFieldManager v1 = new TouchVerticalFieldMananger1();
                for(int i=0;i<10;i++){
                    v1.add(new LabelField("F" + String.valueOf(i+1),Field.FOCUSABLE));
                }
                VerticalFieldManager v2 = new TouchVerticalFieldMananger2();
                for(int i=0;i<10;i++){
                    v2.add(new LabelField("S" + String.valueOf(i+1),Field.FOCUSABLE));
                }
                vfm.add(v1);
                vfm.add(v2);
                this.add(vfm);
            }
            public boolean trackwheelClick(int time, int status){
                Dialog.alert("click");
                return true;
            }
            protected boolean touchEvent(TouchEvent te){
                UiApplication.getUiApplication().invokeLater(new Runnable()
                {
                    public void run()
                    {
                        Dialog.alert("touched!");
                    }
                });
                return super.touchEvent(te);
            }
        }
    
        class TouchVerticalFieldMananger1 extends VerticalFieldManager
        {
            TouchVerticalFieldMananger1()
            {
                super();
            }
            public boolean touchEvent(TouchEvent te)
            {        if(!this.isFocus()) return true;            switch(te.getEvent())
                {
                    case TouchEvent.CANCEL:
                        System.out.println("CANCEL");
                    break;
                    case TouchEvent.CLICK:
                        System.out.println("CLICK");
                    break;
                    case TouchEvent.DOWN:
                        System.out.println("DOWN");
                    break;
                    case TouchEvent.GESTURE:
                        System.out.println("GESTURE");
                    break;
                    case TouchEvent.MOVE:
                        System.out.println("MOVE");
                    break;
                    case TouchEvent.UNCLICK:
                        System.out.println("UNCLICK");
                    break;
                    case TouchEvent.UP:
                        System.out.println("UP");
                    break;
                }
                if(!te.isValid()) return true;
                int x = te.getX(1);
                int y = te.getY(1);
                int index = this.getFieldAtLocation(x,y);
                if(index < 0 ) return true;
                Field f = getField(index);
                f.setFocus();
                this.invalidate();
                return true;
            }
        }
        class TouchVerticalFieldMananger2 extends VerticalFieldManager
        {
            TouchVerticalFieldMananger2()
            {
                super();
            }
            public boolean touchEvent(TouchEvent te)
            {
    
                if(!this.isFocus()) return true;            switch(te.getEvent())
                {
                    case TouchEvent.CANCEL:
                        System.out.println("CANCEL");
                    break;
                    case TouchEvent.CLICK:
                        System.out.println("CLICK");
                    break;
                    case TouchEvent.DOWN:
                        System.out.println("DOWN");
                    break;
                    case TouchEvent.GESTURE:
                        System.out.println("GESTURE");
                    break;
                    case TouchEvent.MOVE:
                        System.out.println("MOVE");
                    break;
                    case TouchEvent.UNCLICK:
                        System.out.println("UNCLICK");
                    break;
                    case TouchEvent.UP:
                        System.out.println("UP");
                    break;
                }
                if(!te.isValid()) return true;
                int x = te.getX(1);
                int y = te.getY(1);
                int index = this.getFieldAtLocation(x,y);
                if(index < 0 ) return true;
                Field f = getField(index);
                f.setFocus();
                this.invalidate();
                return true;
            }
        }
    }
    

    1:

    If the user has first select a field on one of them VerticalFieldManager, it will always be there and cannot be changed to the other domain.

    2:

    even if I check the field has focus or not, but it doesn't work anymore.

    Is there something wrong on my source code? or logical is false, or my understanding is wrong?

    Any advice pls.

    Thank you.

    We see this issue as well. Our workaround for this is to check the coordinates x, y of touch to make sure that they are within the scope of the current field, and then re - delegate the event so if x is outside the scope of the field.

  • Questions about the Time Capsule

    Hello

    I currently have an iMac 21.5 "4 k (end of 2015) with SSD and a 3 TB eternal desktop hard drive allows you to store my media (music, movies, photos, etc.).

    I am looking to buy a Capsule 2 TB to save my iMac and my MBA. The TC would very probably connected to the iMac to help speed.

    My questions are:

    (1) if I used the only time Capsule for backup using Time Machine would I be able to plug my external hard drive on the TC and use it as a NAS? Mainly, I just want to be able to access my files from hard drive on my MBA and another windows PC wireless.

    (2) If, by connecting an external hard drive TB would be catalogues Lightroom is more recognized? (Ive heard that Lightroom will not access Lightroom catalogs if they are on the NAS, or the fact that the TC is Wi - Fi and wouldn't change that?)

    Thank you

    The TC is one extreme with a hard drive inside... It is not and will never be a SIN. (which means that it is far from even the most basic models specifications.)

    If you're going to do this...

    I am looking to buy a Capsule 2 TB to save my iMac and my MBA. The TC would very probably connected to the iMac to help speed.

    Sorry, but you're better off buying another big fast USB drive and use it for backups.

    You can use your Mac media. There is no need to use a TC.

    (1) if I used the only time Capsule for backup using Time Machine would I be able to plug my external hard drive on the TC and use it as a NAS? Mainly, I just want to be able to access my files from hard drive on my MBA and another windows PC wireless.

    Yes, you can... but you can already do this... plugged into the Mac HD.

    You simply need to open the share for the right folders... and make sure the files you share live in these records.

    (2) If, by connecting an external hard drive TB would be catalogues Lightroom is more recognized? (Ive heard that Lightroom will not access Lightroom catalogs if they are on the NAS, or the fact that the TC is Wi - Fi and wouldn't change that?)

    I can't answer this one... but I can tell you that any network drive is identical to any other network drive... A NAS is a network drive... is a TC... The wired wireless vs makes no difference whatsoever... If lightroom will not work on a NAS, it won't work on a TC.

    There are other big issues... it will be slower and it will be not possible to backup... and it will be less reliable and more expensive...

    ... Ultimately, your iMac is a desktop computer so you can connect a stack of disks inside... USB3 is 5 x faster than gigabit...

    And will work much better.

  • Newbie Question, once events

    Hi I'm new to labview and any help would be appreciated.

    Basically, I have a digital control, I want to be copied to a shared variable when a key is pressed (the one that doesn't lock), then I want the user to be able to change the value of the digital control without changing the variable shared with the new value. The implementation is a calculator of single entry, in this case, but the project is just for learning.

    I tried logical instructions and case structures and I haven't done the work yet.

    My question is there a function or sub - VI that in fact an event happen when, hypothetically the thread disappears after a cycle?

    Any help appriciated.

    Ford wrote:

    Basically, I have a digital control, I want to be copied to a shared variable when a key is pressed (the one that doesn't lock), then I want the user to be able to change the value of the digital control without changing the variable shared with the new value. The implementation is a calculator of single entry, in this case, but the project is just for learning.

    I don't think that you have the correct definition of a 'action lock button', because that's what you really need. Instead of writing to the shared variable inside the true case of a case structure. Whenever you press the button, it will turn TRUE until it is read only once and resets it to false again.

    You can also use a structure of the event triggered by a change in the value of the button. The best choice depends on the rest of the code.

    Perhaps, you must show us little code.

  • Questions about event log

    Hello

    I want to ask for the "file server & CPRS Windows Journal" below means that the use was disconnected at some point.  How to read the time the account is locked in this way?

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

    Every hour, the Windows domain controller that hosts the (PDC) FSMO Flexible Single Master Operation role compares the ACL on all major security accounts (users, groups, and computer accounts) present for its domain in Active Directory and that are in administrative groups against the ACL on the AdminSDHolder object.  If the ACL on the main account differs from the ACL on the object AdminSDHolder, then the ACL on the main account is reset to match the ACL on the AdminSDHolder object and this event is generated. »

    Information February 10, 15 11:01:51 Microsoft - Windows - security - auditing 4740 User Account Management "a user account has been locked.

    Object:
    Security ID: SYSTEM
    Account name: SGGHQDC1$
    Domain account: CISCODOMAIN
    Logon ID: 0x3e7

    Account has been locked:
    Security ID: CISCODOMAIN\XXXXXX
    Account name: XXXXX

    This issue is beyond the scope of this site and must be placed on Technet or MSDN
  • Questions of Quick Time...

    Tried to download the new version of ITunes for IPod and he continues to say to download the latest version of Quick Time.  It will not do, OR it will allow us to uninstall Quick time we have.  Me again that it is already installed, but we cannot get the latest ITunes to install.  Any help will be appreciated!

    Tried to download the new version of ITunes for IPod and he continues to say to download the latest version of Quick Time.  It will not do, OR it will allow us to uninstall Quick time we have.  Me again that it is already installed, but we cannot get the latest ITunes to install.  Any help will be appreciated!

    Hey JaM1416

    Follow the support apple at the below link to uninstall itunes quicktime Hello etc, and reinstall the

    http://support.Apple.com/kb/HT1923

    for any other questions on this Jack in charge of contact apple

    http://www.Apple.com/support/iTunes/

    Walter, the time zone traveller

  • Repeat question - problem event name: Bluescreen

    My PC has been blocking maybe once a week. The PC had VISTA on it before and had no problem. I've recently switched to Windows 7. That's when the problem started. Windows is up to date will all updates. The right computer screen turns white and static blue which is distorted. The question that popped up last was:

    Signature of the problem:

     

    Problem event name: BlueScreen

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 1033

    More information about the problem

     

    BCCode: 19

    BCP1: 00000020

    BCP2: 8540 000

    BCP3: 8540 300

    BCP4: 08600000

    OS version: 6_1_7601

    Service Pack: 1_0

    Product: 256_1

    The computer is:

    Toshiba Satellite L305D-S5900

    AMD Athlon (TM) 64 X 2 Dual - Core TK-57 1.90 GHz processor

    3.00 GB RAM (2.87 GB usable)

    32-bit operating system

    Windows 7 Professional with Service Pack 1

    The events that occur when blockages of the system is:

    Error 16/04/2013 09:48:29 EventLog 6008 none

    Error 16/04/2013 09:48:32 BugCheck 1001 none

    Critical kernel 16/04/2013 09:48:15-41 (63) power

    Error 16/04/2013 core 09:48:17 - EventTracing 3 Session

    I tried to watch the mini dump but I don't know which application to open it in without being random characters.

    I ran a test of memory but don't know which.

    Any ideas how to fix and links to patches would be appreciated.

    Thank you.

    Hello

    Thanks for the detailed description of issue.

    I suggest to consult the following suggestions and check if it helps.

    Resolve stop (blue screen) error in Windows 7

    http://Windows.Microsoft.com/en-in/Windows7/resolving-stop-blue-screen-errors-in-Windows-7

    WARNING CHKDSK:

    Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

     

    System Restore Warning: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed are removed.

     

    Clean installation WARNING: Back up your files before you begin reinstalling Windows, even if you're reinstalling Windows on a hard disk partition. A clean installation replaces the current version of Windows and all personal files.

    I hope this helps. If the problem persists, or if you have questions related to Windows please get back to us. We are happy to help you.

  • Restore database HRCS90 question: until THE TIME which was before the RESETLOGS

    People,


    Hello. On December 2, 2013, I backed up my instance of database with RMAN with Oracle Linux 5 HRCS90. the backup of the database to run correctly. 2 files 'full_0doqhbqc_13_1' and 'full_0eoqhce9_14_1' are saved in the /backup_database_instance_HRCS90 directory.


    Because my HRCS90 database has been damaged, I need to restore the database to HRCS90 until the time 02-Dec_13 when it is saved. I have run the commands below:

    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its release: complete the restore to February 11, 14.

    SQL > alter drop database datafile offline 121;

    Its release: alter database.

    SQL > alter database open resetlogs;

    Its release: alter database.

    SQL > shutdown immediate;

    SQL > startup;

    Its release: mounted database. Open database.


    So I can execute select * TableName off HRCS90 the database successfully.

    Because the HRCS90 database is corrupted again, I need to restore it again on December 2, 2013. I have run the commands below:

    In the directory/u01/oradata/HRSC90 /:

    [user@linux HRCS90] $ rm *.dbf

    RMAN > Connect target;
    RMAN > RUN {SET until TIME ' to_date (February 12, 2013: 00:04:56 ',' DD-MM-YYYY: HH24:MI:SS') ";} RESTORE THE DATABASE ;}

    Its output:

    RMAN-03002: failure of the set command
    RMAN-20207: until the RECOVERY WINDOW, which was before the RESETLOGS.

    My questions are:

    Is that mean 'UNTIL TIME' before the RESETLOGS? How to solve the problem to restore the HRCS90 database?


    Thanks in advance.

    you have run this on your system.correct source?

    Try

    (5) name of the element: / home/user/OracleDB_Home/dbs/c-612194578-20131202-00

    Check the included file: cash SNA: cash 1947113 time: 01-DEC-13

    This backup must be available on the local system.

    HTH
    Anuj

  • New from FCP - persistent of quick questions for huge time savers

    Questions that I can't understand, or hope he have a new answers to:

    1. are there in all cases to view pictures in double in the sequence? (not only in the preview indicating how many times it has been used) I'm looking more for a visual alert. If key in the videos I have change.

    2. is there a way to show out of sync, without video and audio related?... .or am I obligated just to keep files as default-related?

    3. is it possible to double click on an item in the sequence and have the playhead appears in the source to the current location on the clip? Seems to work the first time, but then always in the same place if the clip is double clicked new w / the head of reading in a different place later.

    4. is there a way to keep the structure of imports if records records records? I know that you can import folders if they don't have any other folders inside them... but folder in the folders do not have the same structure.

    5. I want to emphasize an item in the sequence, press + 10 and to pass 10frames. How can I do this? I know that I can zoom in, deselect the pressure button and above AND I know that I can move the playhead and align it, but the two are not as effective as what I'm used to.


    I have responded to you here: http://forums.creativecow.net/readpost/3/936453

    Most of the things you want are requests for features except #5. Simply use the numeric keypad, not the numbers at the top of the keyboard.

  • Why can't set event timer in a loop

    I tried to move 4 clips in a loop and with an interval of 3 seconds. So first, I tried a loop and a timer function inside. I assumed by the loop of the timer must start and end on time. But itdidnt works. So I used another code that is long and complicated. If it worked. But why my first idea didn't work. do-while also with the first logic-why doesn't work?

    Here are the codes - s m there's clips


    THIS CODE DOES NOT WORK - I CAN'T USE TIMER SEVERAL TIMES IN A LOOP

    var arr:Array = new Array(m1,m2,m3,m4);
    trace (arr);

    var timer1:Timer = new Timer (1000.4);
    Timer1.addEventListener (TimerEvent.TIMER_COMPLETE, complete);


    var n: int = 0;
    for (var i: int = 0; i < arr.length; i ++) {}
    Timer1.start ();
    function completer(event:TimerEvent):void
    {arr [i] .x = arr [i] .x - 50 ;}
    }

    END OF WORKS DO NOT CODE.

    THIS CODE WORKS - BUT IT OF TOO LONG WAY - ISN'T THERE A SHORTCUT AS ABOVE?

    var arr:Array = new Array(m1,m2,m3,m4);
    trace (arr);


    var: timer = new Timer (1000,13);

    timer.addEventListener (TimerEvent.TIMER_COMPLETE, complete);


    var n: int =-1;
    timer.addEventListener (TimerEvent.TIMER, handler);
    timer.addEventListener (TimerEvent.TIMER_COMPLETE, complete);
    Timer.Start ();
    function handler(event:TimerEvent):void
    {n++;
    trace (n);
    If (n/3 is int){arr[n/3].x=arr[n/3].x-50 ;}
    }
    function completer(event:TimerEvent):void
    {
    trace ("OK");

    }

    tnxs

    When you use one to run in loop (or make) you do not have the ability to slow down and he will deal with everything it needs to process instantly.  Put a timer control inside it does not wait, if that was your intention.  Also put a function in a loop will no longer work.  The value of i is not known.  Do not build functions in a loop like this.

    The code that you say is too long are you not longer that the first code you tried with the loop if you compare apples to apples and remove the extra feature added to it...

    var arr:Array = new Array(m1,m2,m3,m4);
    var: timer = new Timer (1000,13);
    var n: int =-1;

    timer.addEventListener (TimerEvent.TIMER, handler);
    Timer.Start ();

    function handler(event:TimerEvent):void
    {
    n ++ ;
    If (n/3 is int){arr[n/3].x=arr[n/3].x-50 ;}
    }

    What is this solution is to create a functional loop where one item ends to deal with before the next is triggered to occur.

  • question of event listener

    Hi all

    I'm sorry if this question could be very basic, but I'll go and ask him anyway.


    If I have a clip with a same listener attached to it, is the event listener are deleted automatically when the clip is removed from the scene or do I always have to remove the event manually listeners?

    Thank you all very much

    It all depends on how you set up your event listener.

    This is the method signature for the addEventListener method:

    addEventListener (type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
    The fourth parameter, useWeakReference, tells the EventDispatcher if we keep a strong or a weak reference to the event dispatcher.  If set to false, the EventDispatcher will not retain a reference to the sender once the dispatcher is removed.  If the value is true, it is your responsibility to explicitiy removeEventListener.

Maybe you are looking for