Moving Movie Clips with Arrow keys

How do i make it so when i click the left arrow key, it will
change the movie clip to make it turn around?

Yes, that's what the code I gave you is intended to do....
you replace that code with whatever action you need to take to turn
your movie around.
I have no idea what your movieclip is doing, but I'm guessing
by your response that if it was an arrow pointing left to right
(just an example), you want it to be pointing right to left when
the left arrow is pressed. If you want an immediate turn around,
then the simplest way to do that is to have another frame
containing the movieclip that it moves to where it faces the other
direction--and to have it appear turned around, from the toolbar
you select Modify -> Transform -> Flip Horizontal.
So the movieclip would live inside another movieclip that has
two frames with stop()'s for each frame. In the first frame you
would have the subclip facing left to right, and in the second you
would have it facing right to left. If we call that 2-framed
movieclip "walker", the code I provided before would
become...

Similar Messages

  • Moving anchor point with arrow keys crashes Photoshop CC

    Hey guys,
    I've recently run into this bug many times while working with shapes. Don't really know what initiates it but it's super annoying as it crashes the PS CC completely without possiblity of recovering the unsaved files.
    The bug appears while working with shapes after file is saved and reopened. Because I use to design pixel-perfect UIs, I work with arrow keys a lot to be sure every pixel is in the right place. So after selecting one or more anchor points of shape and hitting any arrow key (to move it by pixel), photoshop immediately crashes with this super-long description of bug: http://justpaste.it/ccshapecrash
    Dunno why but this occurs very often when handling 1px-thin rectangles.
    Is it only me or has anybody else experienced this as well? Any idea what exactly is causing it or what might be wrong with my config?
    Never seen that kind of error in Photoshop before. It completely destroys my everyday workflow

    I have exactly the same problem and I don't have any solution. I was tried to update the latest video drivers - nothing! Tried to update Photoshop which updates fixes bugs - nothing! The problem continues.
    My OS is Windows 8 64bit, video card Nvidia GT 630. For the case, my Photoshop 32x works better (faster) than the 64x. Why is that ? I hope to have a solution.

  • Moving movie clips with ActionScript

    I am trying to move four movie clips with actionscript in a
    circler motion with two buttons, one to rotate the mc’s to
    the left and one button to rotate the mc’s to the right. Here
    is a link to what I am trying to do;
    http://www.us.playstation.com/Lair/
    and it is undrer game features.

    Yes, that's what the code I gave you is intended to do....
    you replace that code with whatever action you need to take to turn
    your movie around.
    I have no idea what your movieclip is doing, but I'm guessing
    by your response that if it was an arrow pointing left to right
    (just an example), you want it to be pointing right to left when
    the left arrow is pressed. If you want an immediate turn around,
    then the simplest way to do that is to have another frame
    containing the movieclip that it moves to where it faces the other
    direction--and to have it appear turned around, from the toolbar
    you select Modify -> Transform -> Flip Horizontal.
    So the movieclip would live inside another movieclip that has
    two frames with stop()'s for each frame. In the first frame you
    would have the subclip facing left to right, and in the second you
    would have it facing right to left. If we call that 2-framed
    movieclip "walker", the code I provided before would
    become...

  • Moving a line with arrow keys/can't adjust distance

    In Illustrator CS6 I can't adjust how far a line moves when I move it using the arrow keys. I've gone to Preferences>General>Keyboard Increment and changed the amount, but the line moves the same distance no matter what I put in. Neither Snap to Grid nor Snap to Point are turned on.

    Thank you Mike! It was driving me crazy. I just started to use CS6 and hadn't messed with any adjustments. How would someone know to check such a seemingly obscure--except to come to the forum?

  • Labview 2009 SP1 crashes when moving large selection with arrow key

    If I select a lot (10 or 15) of Block Diagram components and try to move them some distance with the arrow key, I will frequently get a program crash.  Since a smaller number of components seems to crash after a longer travel distance, it looks like some kind of buffer overflow error.  I do not see this problem when using the mouse to move selections.
    I have checked to be sure I have the latest video driver for my NVIDIA Quatro FX570.  I have also tried working with no hardware acceleration and no combined writes.  This is happening on Windows XP SP3 with all the current updates.
    It has become so bad that I have to do a Save As every fifteen minutes to keep from losing data.
    Why don't I use my mouse for all movements?  Because it is not as accurate and not so easy to restrict to one dimension of movement.   My hand is not as steady as it once was.
    I hoping someone will have a suggestion that will clear up this problem.
    Solved!
    Go to Solution.

    As I indicated, I had the same problem with 8.5 and just DID a new installation of Labview 2009.
    Since it is possible my three-monitor setup, which obviously requires more video memory, may be at the root of the problem, I am satisfied with the workaround of dragging the objects near their final destination and then using the arrow keys.  
    Three monitors are ideal for front panel, block diagram and Help/Internet/Probe Window.  When I had to work in the field with only one monitor, I felt severely handicapped.
    You may consider the matter closed.
    Thanks for attempting to duplicate the failure.

  • Moving Identity Plate with Arrow Keys

    I have always been able to move my identity plate around using the arrow keys. For some reason, it doesn't work any more. I am using Lightroom 2.3. I know that this is a small problem, but I sure would like to know how to remedy this. Thanks!

    Hi Ken,
    This is how I have done it.
    1. Create identity plate in Illustrator and save as an Illustrator file = .ai
    2. Go to Overlays in Lightroom and check Identity Plate
    3. Within the Identity Plate checkered box, you will see a pull-down menu on the bottom right
    4. Select Edit
    5. Select the radio button: "Use a graphical Identity Plate"
    6. Locate the ai file and select Choose (You might not see anything in the window, but don't worry about that
    7. Select Custom
    8. Choose Save As and give it a name
    9. Select OK
    Now, when you go into that checkered box within the Identity Plate window, you will now see your new Identity Plate (ai graphic) listed. Select it, and it will be displayed on your photograph. Sometimes, I have to select it twice (not sure why) for the resolution to be high quality. Good luck and let me know how it works out.
    Matt

  • Keynote Crashes When I Move Objects With Arrow Keys

    Subject explains it all.
    This happens on both my 2.4GHZ Intel iMac and G4 powerbook.
    Machines are running OS 10.5.2 and Keynote 2.0.2
    I've bought both Leopard and Keynote and installed all the software from the CDs.
    Message was edited by: linus.spindrift

    The advice I would take from the last post would be used only to isolate the issue as it might relate to a system wide issue or a user specific issue. In other words, can we determine Keynote's behavior as being related to your home account and those files in your folder or the System (OS) level files? Read on please…
    If, after creating a new user account and logging into and Keynote continues to behave the same way, then potentially there is file outside your homefolder responsible for this. The file in question would, I'm sure you would agree, be a file related to Keynote's functionality and is accessed while Keynote is in use.
    When Keynote is attempting to follow your instructions it may be accessing a file that it relies on.
    A program which you can download to troubleshoot the issue is called appzapper, you can visit the developer's site here: http://appzapper.com/
    My suggestion would be to download this little app. Install it>drag and drop Keynote onto AppZapper. AppZapper will do its' best to find files relevant to the Keynote application and give you an opportunity to trash them.
    If you are curious as to the files AppZapper associates with Keynote, copy the name of those files and do a Google search to find out more about those files.
    In most cases the list of files, AppZapper associates are harmless if trashed, just make sure Keynote is not open while doing this or Keynote may sort of ask itself what is going on and behave oddly, a quit and relaunch should fix that if you forget to quit Keynote.
    Good target files that AppZapper might find are what are known as .plist files, plist as in PropertyList. .plist files typically store application preferences. So if you have ever gone to the preferences for Keynote in this case and modified the settings that .plist file would have stored those changes you set. If you move the .plist files to the trash, Keynote, upon a relaunch will say to itself, oh look, my .plist files are missing and simply regenerate those .plist files.
    The point here is if the .plist files were corrupt and Keynote was accessing those file(s) it would try to read the file and say to itself, hey I don't know how to read this and in this case, shut itself down.
    AppZapper may find more than just .plist files, investigate any files you feel hesitant to trash using your our old friend Google to learn about what it is you are going to trash.
    In most cases what AppZapper finds is safe enough to trash, just be sure to close Keynote before running this to keep Keynote from running into any unexpected surprises. It would be like yanking candy from a child's hand - that wouldn't be too nice.
    Finally if the issue persists, using DVD1 that came bundled with your mac, you should be able to install the bundled software only.
    Reinstalling Keynote or iLife should also be considered as a solution.
    An entire OS purchase or OS re-installation is definitely overkill and not an elegant solution, not to mention the downtime.
    The solution I am proposing hopefully makes common sense to you and gives you an overview in terms of understanding that there are files other than the application file related to any application's overall function.
    AppZapper is a small download and may help you locate that stubborn file causing you grief.
    That being said, creating a new user account on your mac and logging into it to isolate issues as being system wide or user specific is indeed the way to go to isolate issues in those terms.
    Keep us posted.
    Message was edited by: santoscork
    Message was edited by: santoscork

  • Artifacts when moving object with arrow keys.

    Hi all
    hope this is the right place to post this question.
    I want to to write simple arkanoid game in Flash (AC3). I've managed to write code that  moves my paddle with arrow keys. The code looks like this:
    function OnNewFrame(event:Event):void
        if (input.IsLeftHeld)
            if (paddle.x > 0)
                paddle.x -= 10;
        else
        if (input.IsRightHeld)
            if (paddle.x < stage.stageWidth - paddle.width)
                paddle.x += 10;
    It works but the result is ugly. The animation is not fluent, there are times when paddle stops for a moment . Also when speed of translation is high (here it is 10) you can see that paddle is flickering at the ends, it looks like single buffering problem. You can see both of those effects here:  http://www.flash-game-design.com/flash-tutorials/movOb.html , hovewer flickering is less visible due to small translation amount.
    How to fix this? How can i enable double buffering (or maybe it is enabled by default)?  Any help will be appreciated.
    P.S. sorry for bad english

    Thanks for samples, this is very kind ; p
    Hovewer you are doing everything almost exactly as I'am doing. Tou are using mySymbol.x++ which means your translation speed is 1. Also I'am aware that rising frame rate will result in smoother animations, but this is not the point. So once again, my flash applications suffer from two problems:
    1) Animations are not smooth. You can see this crealrly in here: http://www.kirupa.com/developer/actionscript/hittest.htm  , go back to the very bottom of the page, there is an animation window, look at the smallest circle. It looks like its blinking. 
    2) Moving symbols with arrow keys with the method i've presnted in the first post (the same method that infeter uses ). Moved symbol is randomly stopping for the very (very very) short amount of time. You can easily spot this in infeter sample.
    Many sample applications i've seen suffer from those issues. and nobody seems to see the problem, so maybe I am delusional? ; p
    cheers and thank for help

  • Can't move an object with arrow keys - CS3

    In Fash CS3, suddenly, in certain files, I can't move an object left using arrow keys - but I can move the same object right, or if I hold down Shift + left arrow, it works correctly
    Also - I can move the object down with arrow keys, but not up
    Workaround - move an object on a different layer, then return to the problem object and it moves correctly. But this doesn't last long, the problem resurfaces.
    Does anyone have a solution for this? (I've tried rebooting; tried copying all the layers into a new file - no help.)

    Now, working in the same file, I just clicked on a stroke and it changed the stroke from a smooth curve to angular lines.
    I suspect this file is corrupt. Any thoughts on how to salvage the weeks of work that have gone into it? Every version of this file has the same issues.
    Thanks for any help.

  • How to make a first-person style game with arrow key movement?

    Hey guys, I've made some simple click-to-move 1st person games with AS3, but I just wanted to know if there was a way to move around in 1st person with arrow keys, I was thinking you could get the background to move with the arrow keys, but that would be a little confusing.
    If you guys have any suggestions for me, or if it's possible, please reply! Thanks

    Here is a basic switch usage to move something with the keyboard:
    stage.addEventListener(KeyboardEvent.KEY_DOWN, move_mc);
    function move_mc(event:KeyboardEvent):void {
        switch(event.keyCode)
           case  Keyboard.LEFT : mc.x -= 5
           break;
           case  Keyboard.RIGHT : mc.x += 5
           break;
           case Keyboard.UP : mc.y -= 5
           break;
           case Keyboard.DOWN : mc.y += 5
           break;

  • How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys?

    How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys an see at the same time the changes on the photo?
    It worked under Windows, now I use OS 10.8 and have to apply a preset with a click or Return button but after that the pop-up menu close so I have to open it once again to change a preset. Please help. Thank you!

    The filter panel is a shortcut for the content panel and it only effects the content of that window. So if you have a folder it will only see this as a folder and not with its content. (a Stack behaves about the same, being different in only counting the first file in the filter panel criteria but not what is in the stack itself)
    You have a view work arounds, first is use menu view / show items from subfolders (this can take some time especially if you have not used caching before on this content) and this builds visible thumbs for all content and that can be used for filtering.
    Or use the find command (Edit / find) and inhere specify the source and fill in the criteria include subfolders and this will give you the correct result.
    When you create a smart collection the find command also pops up given you the same opportunity to get the results in a collection, but since a collection is only a bunch of aliases referring to the originals you might be a bit careful with editing and deleting.

  • What type of movie clips are handled by the ipad? I have shot a movie clip with my canon camera and the file is .AVI.  will this load onto ipad?

    what type of movie clips are handled by the ipad? I have shot a movie clip with my canon camera and the file is .AVI.  will this load onto ipad?

    Per http://www.apple.com/ipad/specs/
    AirPlay Mirroring to Apple TV (2nd and 3rd generation) at 720p
    AirPlay video streaming to Apple TV (3rd generation) at up to 1080p and Apple TV (2nd generation) at up to 720p
    Video mirroring and video out support: Up to 1080p with Apple Digital AV Adapter or Apple VGA Adapter (adapters sold separately)
    Video out support at 576i and 480i with Apple Composite AV Cable (cable sold separately)
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format

  • Copying movie clip with flv

    Hi, I am trying to copy a movie clip with an flv in it from
    one project to another. Everything works fine except the flv just
    keeps trying to load and never plays. I am not sure what to do. Any
    suggestions?

    It sounds like you are using the FLVPlayback component to
    display the FLV, in which case, the FLV is a separate file and
    likely needs to be in the folder next to the new project. Go back
    to the old project and copy the FLV from its location there to the
    new projects folder.

  • Noob help: Triggering Movie Clips with Buttons

    Hi guys,
    I'm taking an intro Flash and Action Script class and for my final I need to create a portfolio project that contains 5 unique buttons that trigger 5 unique movie clips. I'm having a hard time with this. I've been able to trigger the 1st movie clip with the first button (although I can't stop it) but I can't trigger any ohter movies with any other buttons.
    Here's my code:
    stop();
    chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
    function playMovie(event:MouseEvent):void
        spaceship_mc.play();
    chuck2_btn.addEventListener(MouseEvent.CLICK,playSaucers);
    function playSaucers(event:MouseEvent):void
        saucers_mc.play();
    Nothing happens when I click on chuck2_btn when I test the movie. I think I need to create a variable or class but I'm not sure. I'm a super noob with this stuff. Any thoughts? Thanks!
    Rick

    You should learn how to use the Help documentation to find answers like how to use the visible property.  For the code you showed earlier, here's what you can try in frame 1 to replace it.
    stop();
    spaceship_mc.visible = false;
    saucers_mc.visible = false;
    slideshow_mc.visible = false;
    chuck1_btn.addEventListener(MouseEvent.CLICK, playMovie);
    function playMovie(event:MouseEvent):void
         spaceship_mc.visible = true;
         saucers_mc.visible = false;
         slideshow_mc.visible = false;
        spaceship_mc.play();
    chuck2_btn.addEventListener(MouseEvent.CLICK,playSaucers);
    function playSaucers(event:MouseEvent):void
         spaceship_mc.visible = false;
         saucers_mc.visible = true;
         slideshow_mc.visible = false;
        saucers_mc.play();
    etc...
    It could be refined, like having a function that hides everything and using that every time before making the one you need to show visible.  You might find it necessary to include telling the movies to gotoAndStop(1) as well.
    That's about as generous as I'm going to get.  It's important that you learn things, and handing you a solution isn't going to help do that.

  • Check for movie clips with AS?

    Is it possible to check if a frame contain a movie clip with
    AS, and then if movie clip is found run a function? Like a global
    "event handler " for movie clips.

    I want a function that automaticly can detect and fade in any
    movie clip found in any keyframe in the main timeline. So i don't
    have to make
    In the first keyframe in the main timeline
    on (ohh here i found a movie clip)
    //let's run a nice fade function on that movie clip
    mx.transitions.TransitionManager.start
    (eval(TheClip),
    {type:mx.transitions.Fade,
    direction:0,
    duration:1,
    easing:mx.transitions.easing.None.easeNone,
    param1:empty,
    param2:empty
    Something like that

Maybe you are looking for