Move a clip via the issue of key events.

I have a project where I'm trying to move the clip: "wally", up and down three levels of a step.

However, the default position I have him put down 120 pixels and 145 pixels.

I want to limit this action to a single use, which means that if wally goes once its default position, he has to come down, and vice versa, if it breaks down must go back to the top (or stay at this level). Also, if it rises 145 pixels, it's going down 145 pixels, even if it breaks down 120 pixels, he needs to get back to the top of 120 pixels. I may be too think about it, because I had to strip the code of departure the other day and am at a loss, once more. If it would be easier done by moving with the arrow keys and the case statements, made me know, because I am confused.

Starting code:

stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressHandler1);

function keyPressHandler1(event:KeyboardEvent):void

{

if(Event.keycode==38)

{

Wally.y-= 145;

}

another if (event.keyCode is 40)

{

Wally.y += 120;

}

}

use:

wally.startY = wally.y;

stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressHandler1);

function keyPressHandler1(event:KeyboardEvent):void

{

if(Event.keycode==38)

{

{if(Wally.y==Wally.startY)}

Wally.y-= 145;

} else {if(wally.y>wally.startY)

Wally.y = Wally.startY

}

}

another if (event.keyCode is 40)

{

{if(Wally.y==Wally.startY)}

Wally.y += 120;

} ElseIf (wally.y<>

Wally.y = Wally.startY;

}

}

}

p.s. Please check the useful/correct.

Tags: Adobe Animate

Similar Questions

  • How can I move a clip on the timeline, a framework at a time

    Hello

    I have cs6.

    I have problems of movement of clips on the timeline slightly, that is, image by image, when I try to move I do not get the fine-tuning, it jumps a second.

    How can I get a precise control?

    In addition, cs5.5 I could zoom in/out of the timeline, using the 'mountain' in right drazg left etc. I don't have this on CS6? all ideas

    Thank you very much

    Chris Anderson

    Use Alt + arrow keys l/r or Alt + point/comma keys.

  • How can I move a clip on the timeline less of an image?

    I need to move an audio clip on the timeline to match the video, but it snaps a picture at a time and I need to move less than that. ?

    Select "Show Audio time units" in the menu of the key in the program monitor.

  • How to restore a backup made via the Dell USB key Solution?

    I have a backup on an external disk created with the Dell USB key Solution and takes the name 05-01-2012_135210_Backup and looks like this:

    Directory of E:\05-01-2012_135210_Backup
    05/01/2012 17:21

    .
    05/01/2012 17:21 ...
    05/01/2012 17:21 APPS. INP
    05/01/2012 APPS_0000.INP 942 17:21
    05/01/2012 APPS_0001.INP 1 449 984 17:21
    05/01/2012 17:21 3 713 788 DATA. INP
    05/01/2012 17:21 949 160 DATA_0000.INP
    05/01/2012 16:59 DATA_0001.INP 650,996,224
    05/01/2012 17:00 DATA_0002.INP 650,377,728
    05/01/2012 DATA_0003.INP 650,780,672 17:01
    05/01/2012 DATA_0004.INP 650,156,544 17:01
    05/01/2012 DATA_0005.INP 650,135,040 17:02
    05/01/2012 17:03 DATA_0006.INP 650,592,768
    05/01/2012 17:03 DATA_0007.INP 650,867,200
    05/01/2012 DATA_0008.INP 650,413,568 17:04
    05/01/2012 DATA_0009.INP 650,225,152 17:05
    05/01/2012 DATA_0010.INP 650,678,272 17:05
    05/01/2012 17:06 DATA_0011.INP 651,130,880
    05/01/2012 17:07 DATA_0012.INP 650,716,160
    05/01/2012 DATA_0013.INP 650,323,968 17:08
    05/01/2012 DATA_0014.INP 650,544,640 17:08
    05/01/2012 17:09 DATA_0015.INP 650,903,552
    05/01/2012 DATA_0016.INP 650,121,728 17:10
    05/01/2012 DATA_0017.INP 650,273,280 17:11
    05/01/2012 DATA_0018.INP 650,703,872 17:12
    05/01/2012 DATA_0019.INP 650,381,824 17:13
    05/01/2012 DATA_0020.INP 650,613,248 17:13
    05/01/2012 DATA_0021.INP 650,506,752 17:14
    05/01/2012 DATA_0022.INP 650,527,744 17:15
    05/01/2012 DATA_0023.INP 650,539,008 17:15
    05/01/2012 DATA_0024.INP 650,273,792 17:16
    05/01/2012 DATA_0025.INP 650,347,520 17:17
    05/01/2012 DATA_0026.INP 651,014,656 17:17
    05/01/2012 DATA_0027.INP 650,540,544 17:18
    05/01/2012 DATA_0028.INP 478,608,896 17:21
    05/01/2012 include.xml 2 281 350 17:21
    05/01/2012 migr.xml 1 330 286 17:21
    35 file (s) on 18,053,022,754 bytes
    2 dir 607,587,577,856 bytes free

    I was not able to complete the full implementation of the solution Dell Direct USB key due to various problems.  .    Dell ended up sending me a new Windows 7 HARD disk image.   I have now the laptop up and running again with Windows 7 and have various applications installed.   That's all pretty well.  But now how do I get my data files restored?   Basically, I want to connect the external drive to backup and complete step 19 of the solution, as described below.

    
    Here are the steps OS using the Dell USB key: 
    
    1. Boot from the Direct USB Key by tapping F12 at the Dell logo, then select the
    USB Memory Key option from the boot device menu. 
    
    2. Accept the Dell End User License Agreement (EULA) by clicking the box next to
    Accept, scroll down till the end of the license agreement and then click on
    continue. 
    
    3. On this screen, the usb key gives an overview of the process it is about to
    perform, click continue when ready to proceed. 
    
    4. The Smart Repair solution runs a surface scan on the system to identify any
    errors with the boot record or the startup files. If any errors are found, they
    are automatically corrected. 
    
    5. Once the process completes, there will be an analysis summary, in this case,
    there is no issue found by the smart repair, click continue. 
    
    6. In this window the user can select what data they would like to back up, they
    can either go with the default backup solution or they can click select more to
    select more files for backup, click continue after selecting files for backup. 
    
    7. If user clicks on select more, they will get the screen below, they can go
    ahead and select the necessary data for backup by checking the box next to the
    respective folder, sub-directories are selected by default once the root folder
    is selected. 
    
    8. The user will be prompted to attach a USB hard drive to the system, user
    needs to connect the USB Hard drive at this point and click continue. 
    
    9. Once the solution detects the USB hard drive , it goes ahead with file
    backup. 
    
    10. Once the files are backed up, the solution will back up the user personal
    settings. 
    
    11. The Direct USB Key displays a summary of the data and personal settings
    backup. Click continue. 
    
    12. The Direct USB key then proceeds to install the operating system image on
    the system. 
    
    13. Once the operating system image is transferred, the drivers are also
    transferred. 
    
    14. After the operating system image and driver transfer, a summary page comes
    up giving the user information as to what process was performed successfully and
    what failed. The user needs to remove the USB key at this point and click
    restart. 
    
    15. The system restarts and comes to a flash screen on recovery and restore. 
    
    16. After the flash screen, the applications start installing. 
    
    17. Once the applications are installed, the user would see a summary screen
    informing them that the Operating system has been restored, connect the Direct
    USB Key and click restart. 
    
    18. After the restart the user will be prompted to connect the data backup hard
    drive and then click continue. 
    
    19. The files and personal settings are then restored from the USB backup drive. 
    
    20. After the files are transferred the system comes to the desktop with a pop
    up window informing the user to check the device manager for any exclamation
    marks, the tool also guides the user to download the drivers from the support
    site and the applications from My Dell Downloads and Dell Digital Delivery. User
    needs to select the check box to prevent the message from being displayed again
    and click close. 
    
    =============================================
    
    What program/utility can be used to run step 19  to restore my data?
    
    Thanks in advance!
    
    			 

    The Windows Migration utility (MigRestore) was obtained from Dell, decompressed and Support execution of data taken with the backup restore.

  • Delete the registry via the command prompt keys

    I uninstalled a program on my computer, and I want to remove all the remaining files, registry keys and values of that particular program to the registry via the command prompt. Y at - it a command line that can scan and remove all the remaining files, registry keys and values of this particular program of the whole registry via the command prompt in only once.

    Please help me.

    If the uninstall program is correctly written, then it will do it all. If this isn't the case, you will have to do it manually. Although it is possible to write a script that will scan the registry for some channels, it is not a trivial task. Running one such script would be quite risky because it could easily delete the wrong registry key.

    Also note that the unused files or registry keys not used do not slow down a machine, contrary to popular belief. Purge of these undesirable things might give you a welcome warm feeling inside, but he has no effect on the performance of the PC.

  • Cannot move my clips on the timeline

    I can not move suddenly clips in my calendar. I researched and found the answers while making sure my v1 is highlighted in the left side. It is... now im stuck! Help, please

    Hello

    Delete in and out marks before dragging the file in the timeline. It's a bug that we know and how to fix it quickly.

    Thank you

    Kevin

  • How to move correctly clips on the timeline?

    Hello

    I'm having some trouble of fundamental change.

    On the timeline, let's say, from left to right, I have video clips 1, 2,3,4,5,6 and 7.

    I tried to re - organize the sequence by moving clip 6 clip between 2 and 3. So I select clip 6 and drag it up to the limit between clip 2 and 3. And when I release the mouse, it's just crush...

    Advice on where did I go wrong turn?

    Thank you

    Hi Ryan,

    You have two options:

    As pointed out above the Cmd Option by dragging that a clip will allow you to rearrange the clips in the timeline - it's actually a follow-up excerpt from an insert in a single action.

    If you click and drag an item, then this is an elevator, which will leave a vacuum and then he will edit in the sequence as a

    (a) to replace the default Edition

    (b) Insert edit if Cmd is held down WHILE dragging

    You can also if you Cmd-click-drag a clip it will be an excerpt (no space left behind) and re-released in the sequence by using the same rules above while dragging.

    Just be aware to call extract your action of Cmd-click-drag will invariably mean that you will have your finger on the key command key by dragging so he'll be primed to Insert unless you release the command key button by dragging.

  • Move a clip in the program monitor and have movement that all keyframes move them relatively

    So I have a clip in the timeline, and there are several position keyframes to move it around. I now want to spend the full clip several pixels, so that all the position keyframes remain the same with the other, but just change it is coordinated by a number of pixels. I can't work how to do that in first - someone knows?

    In FCP 7 you can do this by pressing the shift and command all by dragging a clip selected in the drawing area, and it shifts the trajectory. Hard to believe that the first is not a similar feature otherwise if you have a complex trajectory in first, then you have no way to move the overall position of the clip.

    All change at the same time, the simple is to use the position of the effect of the transformation parameter (in the sandbox of deformation).

    Just move it to the top of several pixels. No sweat. Easy.

  • Securing of Captivate movies and access via the Web

    Hi all

    My apologies if this is a little off topic, but I just thought that someone out there has fallen on this problem and come upwards with a solution. All the tips / pointers thank you gratefully received!

    I would create a bunch of Captivate movies that will be accessible on the web. Different customers/clients need to access different movies. What I would really like to be able to do is post these movies on my site OR a site offering secure accommodation.

    The customer would be given a URL - when you can access the URL, they are going to a login page (and provide a password), and then be presented with a start page / menu where they can access movies that relate to the software they use (customers all use different versions of the software as well as movies are subtly different for each).

    A grave on this type of hosting solution or has any ideas for this scenario?

    Thank you very much
    Craig

    Craig,
    I think you have the wrong end of the stick about htaccess
    I made a small example for you here protected folder
    username and password = larry

    a good host is http://ukwebsolutionsdirect.co.uk/hosting.php
    I use them for all my domains/site and they are cheap

    Paul

  • How to remove a clip of the scene through an event to send?

    I have a video clip that is added to the scene. There is a Close button on this clip from movie I'd like to close and remove the clip from the stage. But the close button does not work when clicked, nothing happens.


    Here is the flow with the code:

    Add the clip to the scene

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is Credits_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlayCredits);

    myPlayCredits.x = 511;

    myPlayCredits.y = 386;

    }

    This is the code on the button inside the clip that calls the sending

    import flash.events.Event;

    Stop();

    closeCredit.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditPopupScreen);

    function closeCreditPopupScreen (event: MouseEvent): void

    {

    dispatchEvent (new Event ("RemoveMCcredit"));

    }

    Delete (is supposed to remove) the MovieClip from the stage when the user clicks the close button in the MovieClip.

    stage.addEventListener ("RemoveMCcredit", RemoveCreditClip);

    function RemoveCreditClip(e:Event):void

    {

    removeChild (myPlayCredits);

    }

    Anyone have any ideas?

    Why don't you simply assign the event listener for the closeCredit button after you instantiate myPlayCredits and have just the event listener to call the RemoveCreditClip function directly...

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    myPlayCredits.loseCredit.addEventListener (MouseEvent.CLICK, RemoveCreditClip); \

    If you want to use the shipping event approach, try to assign the listener to the mc myPlayCredits, not the scene. (Or set of argument spread of the true event if you assign it to the scene)

  • Move video Clips with the arrow keys

    How can I do so when I click the button left arrow, it will change the clip to turn around?

    OK - assuming that the first image is the image of the 'capacity' place a stop() on the first image. Add a variable to control the root timeline, and then click the last place of the frame a condition to determine if the character should continue the cycle of animation (you may need to add an additional post to make the smooth transition) in scripts to call the play() character - then add another key condition that asks if no. keys are currently used and then assign the var to false and the character moves to the position up to the at the end of the cycle - more like this:

    PS. NP Ned lol! ;)

  • Soft Reset via the program or keys (Treo 800w)

    I'm just curious about whether a program, hack or secret of strikes are to allow a restart warm.  I know it's possible, given that several programs to perform a reset via their installation routine.  I know this does not all registers and memory locations because the battery is never deleted, however, it seems to me that it would be a good thing to be able to do if you're having problems and want a quick fix, assuming that the keyboard still works. For me, this scenario would be more like a reboot and remove the battery would be a reset (soft vs hard).

    Just looks like if there is a Hi 3 fingers (Ctrl-Alt-Del) for other versions of Windows, they would have one for Windows Mobile.

    Another reason I wish I had this ability is because I bought a nice box to my new phone and really don't take apart for each reset, because the way it snaps together I'm sure it will decrease the life expectancy of the case.

    http://www.MobileTopSoft.com/Pocket-PC/freeware/tag/reset

    Message relates to: None

  • -Move a file via the MS Explorer but metadata is always identical to the original library

    I just moved a file in a document library in an another document library on the same site SharePoint 2013.  I want to change the properties and update this file with the metadata already in place on the new library.  However, I don't see corresponds to the metadata carried over from the original library.  Anyone know how I can update this file (and maybe others moved also) and ensure that I can use metadata in this destination library?

    Hello

    Your Question is beyond the scope of this community.

    Please repost your Question in the MSDN Forums for SharePoint:

    https://social.msdn.Microsoft.com/forums/Office/en-us/home?category=SharePoint

    Or in the TechNet Forums for SharePoint:

    https://social.technet.Microsoft.com/forums/Office/en-us/home?category=SharePoint

    See you soon.

  • Timeline hums when I move a clip

    I use Premiere Pro CC 2014 on a Macbook Pro running Mavricks. I've been editing for about a week without incident and suddenly whenever I have move a clip on the timeline the timeline completely zoomed out or background. It's fundamentally change impossible. The application restarts the machine make no difference, and the problem occurs on any project that I opened. I don't use any third part input devices, just the standard trackpad. It's maddening to the point that I want to drop my subscription and a refund if a solution is not found, please help!

    It looks like somehow the shortcut 'zoom on the sequence' fires when you edit it. IM unfamiliar with mac, but on pc a few keyboards and mice can be programmed to use other keys. so if you have a software like that, may try to disable it. You can also check in a program by clicking or by using the keyboard to see if in the text he types text editing.

    You can also delete this shortcut creation, so there is no shortcut for the zoom of the sequence.

  • Is it possible to only use the keyboard to move a window on the desktop?

    I have a lot of fun trying to do it all with just the keys and trackpad not.  One that I'm missing and it would be very useful would be to find a way to move windows with just the use of keys.  I expect the arrows would be involved, but to do something about the window I want to move.

    I believe you can use the best tool to touch (http://www.bettertouchtool.net) to assign keyboard shortcuts to move the windows.

Maybe you are looking for

  • Digitizer Pen will not work

    Product number: 20c1000vuk It is a renovated model of laptopsdirect It did not come with a pen and the one I ordered didn't work right out of the box. This tablet is not compatible? Or what?

  • Don't start by Satellite P100-188 - white screen

    Hi all! I have a PC laptop toshiba satellite p100-188 and I have a problem with it. This morning when I tried to turn it on it didn't work. The fans started the LEDs on, but there is no display. I tried to turn it on with the battery, I have changed

  • PROBLEM OF WEDGING UNDER VI

    Hi all! I'm doing a review project in Labview 8.6. I created a VI server to simulate a blowing extrusion machine. It includes two parts. The first is a simple bunch of random number generators and some arithmetic to simulate temperatures. The second

  • Control/monitoring of temperature monitors/clocks CPU/GPU: recommendations?

    Given the need to document and mediation temperatures GPU, especially about GPU NVIDIA with high failure rates, here are 2 programs you can consider using.  All OEM computer customer support is more often limited and unsolved.  We, end-users must inc

  • 7 place of Dell does not illuminate

    I turn on my place Tablet 7 dell, dell logo appears, it gets all the way to almost and shuts... According to Dell, my warranty has expired, but still has 107 days?