Creating space where video clip can pass, but cannot go away from this area

I want to do something first film line mobile must in second video clip, but can not go far from second video clip.

stage.addEventListener(KeyboardEvent.KEY_DOWN, starMoving);
function starMoving(event:KeyboardEvent):void
{
     switch (event.keyCode)
     {
          case Keyboard.UP : star_mc.y-=10;
          break;
          case Keyboard.DOWN : star_mc.y+=10;
          break;
          case Keyboard.LEFT : star_mc.x=star_mc.x-10;
          break;
          case Keyboard.RIGHT : star_mc.x+=10;
          break;
          default:
          break;
     }
}

So this is the code to handle the first movie clip... I can go anywhere on the scene...

How can I do, then the first clip from movie sets just in second?

Thank you.

Whenever you move, you must test the extensions to see if you are still within the limits. I'll use the right for an example, you can do the rest.

case Keyboard.RIGHT :      star_mc.x+=10;     if(star_mc.x + star_mc.width > containerClip.x + containerClip.width){          star_mc.x = containerClip.x + containerClip.width - star_mc.width;     }     break;

Tags: Adobe Animate

Similar Questions

  • I can receive but cannot make calls from Mac

    Hello

    I try to have calls using my iPhone connected to my MacBook Air, but I have this message "your iPhone should use the same iCloud and FaceTime account.". This is something that surprises me because I can receive calls from my MacBook, but I can't make calls from my MacBook. There's someone who have / had the same problem?

    Thank you

    CO

    OS X El Capitan: use your Mac to make and receive phone calls

    Make calls

    FaceTime: Enter a phone number in the search field and then click the Audio button or click on Audio to see your recent calls.

  • Can download but cannot install. "Administrator privileges are required?

    What should I do? Try to install trials on PC. Get to halfway through the installation and then message comes up with discretion to stop smoking. Help please...

    Hi Mylenium - I managed now to install by right clicking and saying 'use as administrator'. I don't know why I had to do it because it is a stand-alone PC. I am running Windows 7 / MS Office and Outlook. But I hope that I won't have any problems. Please check in and if I can get back to you / the Forum if I find that I get all the problems during the trial?

  • Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add it or drag it immediately comes crashing windows, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add any

    Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add or drag it happens immediately windows crash, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add .mp3 files.

    I had Windows 8.1, 2.4 GHz, 6 GB of RAM. How to solve this problem?

    Fixed a problem when converting the mp3 file. WAV...

    some poor Adobe Premiere Elements if there is for example simple bug in the software.  Waste of money for this software.

  • can send but cannot receive messages on ipad with IOS new 9.3.2 waves I

    can send but cannot receive messages on ipad with IOS new 9.3.2 waves I

    1. make sure that the information entered in the transmission & reception area in settings - Messages is correct

    2. If so - settings - Messages - switch off

    Log settings - iCloud

    Do a forced reboot - after all open applications using the app Chooser - invoked by fast double pressing the home button and drag upwards on each app until it disappears from the screen.

    Meet the sleep/wake and home buttons down until you see the logo  - then release and allow normal start upward

    If you can't send or receive messages on your iPhone, iPad or iPod touch

  • I can see, but cannot import/open some files.

    I bought Lightroom 6 a few weeks ago. Summer helping another photographer to edit and she a LR5, beloved. I was editing wedding photos and doing great, until I arrived at the reception. I have a few folders of them since a couple of times, I changed the SD cards. On the first record of them, I can click/Open the first 42 photos, and then the rest I can see but cannot click. What could be the problem? Thank you!

    What do you mean by "do not click on '?

    You see the pictures in the import?

    You import directly from the camera?

    Have you tried another way to import (i.e. the copy on the desktop with the browser and import from there?

    What is the file type and the source (camera), your operating system?

  • Mac Mail can send but cannot receive mail.

    I have been in contact with my technical support of Verizon.  There is no problem to an end, but my Mac Mail account can send but not receive mail.  What happened three times during the month.  Each time than previous, Verizon has found a problem locally, for their purpose and in a few hours, it has been corrected.

    This time the problem was upstream at the highest tech people.  They told me that there must be a problem of registration with Mac Mail and I need to contact Apple.

    I tried physician connection without success.

    If someone knows a solution, I'll start here before you contact apple support.

    Mary Lou

    I've never had a problem with Verizon email on my Mac. In your case, Verizon has already said that they have been twice at fault. I'm guessing that this time is not different.

    I suggest you contact Apple support if Verizon has completed its investigation.

  • Can print but cannot scan Photosmart HP 6510

    After being able to print and scan at my Photosmart HP 6510 my VIAO laptop Ultrabook, for some reason, I lost the ability to analyze.  Whenever I try, I get the error message "the scanner is currently in use. Wait until your previous task is completed, and then try again. "The problem is the scanner is not in use and I do not see how to delete it.  This same printer/scanner device other users can connect their computers and scan from it.

    What program you use to create the scans and what file format you saved scans - PdF, JPG, TIF?

    I suggest using assistant installation automated HP.

    Go to http://www8.hp.com/us/en/troubleshooting.html

    Work carefully through the steps to detect your printer through the option to allow web service from HP to install the necessary drivers.

  • Can send but cannot receive faxes on HP Laserjet on Mac 10.9 Mavericks with answering machine TAM

    I have an iMac running OS 10.9 (Mavericks) and a machine to print/scan/fax all-in-one HP Laserjet Professional M1212nf MFP connected by USB.  I have a phone with answering machine connected system.

    I can send faxes of the HP and the Mac (using the pdf fax).  What I can't do, is to receive faxes on the HP (I know that the Mac cannot receive faxes with this machine).  I tried all the combinations of parameters without result even unplug the phone/answering machine without result.

    Any ideas what I need the settings?

    Hi ChuckStewart,

    It is definitely a head scratcher! I found some additional information from the following link, you use a product of Fax HP with a telephone answering machine (TAM).

    I found this interesting presentation text, when recording the outgoing message on your TAM, share of voice must be at least 10 seconds of time, but not more than 20 seconds . Save 5-7 seconds of silence at the end of the vocal part of your outgoing message (message coming out would be your voice message length plus the extra 5 to 7 seconds of recorded silence ).

     

    I wonder if you might find something useful in the document.

    Please let me know. Thank you.

  • Spybot found 2 Trojan horses, but cannot remove them because they are in the registry files. HKEY_CLASSES_ROOT\interface... Help please!

    Spybot S & D found 2 Trojan horses, but cannot get rid of them because they are in the key of registrry files.  HKEY_CLASSES_ROOT/Interface... Please help, I don't know how to get rid of them and I keep getting bad image files Datamngr.dill exe errors

    Hello, Denise,.

    Download the following and run a full scan-

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&id=16

    Let me know.

  • I did a video clip on WLMM but I can't he cut as I can't use edit in the video tools, it appears, but it is faded out, so I can't click on it how do I

    I did my first video with lyrics on WLMM and trials and errors had my music on my background image and the words all in place.

    I can't understand how to cut excess (it shows that I have 63 min. When my clip is only 04:07. I clicked on the tools of video editing tool, but

    It is used as output when you can not use a toolbar... I don't know what I have to do to be able to use the trim on the video editing. What should I do?

    I need an answer as soon as possible.  Thank you for your help. I have Windows Vista.

    Hello

    You use Director of windows or windows live movie maker?

    If you use direct Director windows, then I suggest you to post your query from the link and check.

    http://www.windowslivehelp.com/product.aspx?ProductID=5

  • Audio and video clips and audio but no video on others

    When I import a clip at the pool, ago also good audio and video. But when I drag the clip on the timeline, the audio is moved. I work with various clips in the same format of video, taken with the same camera and with excerpts of what is happening and with others that is not. Also on occasion it just drag audio and video. Does anyone know how to fix this? Have been looking around the forums for a while now, I can't seem to be able to find an answer.

  • Have downloaded video 40mins Humax box flash drive, then to Windows Media player, I can play but cannot burn to DVD, HELP please.

    As it is said above, why can I not burn on a DVD + RW 4.7 GB.

    This problem happened to me before, what program did you use to burn DVDs, windows media player can only burn songs on CD/DVD, not work for video files. You can try another call convertxtodvd DVD burning program, it solve my problem, and here is a guide step by step on How to use it to burn videos to DVD to play on DVD player. Write me if you need another Assistant.

  • Where is profile file of the Thunderbird location so that I can pass it before the upgrade from my computer?

    I'm quite confused by the instructions online. I'm getting a new computer and I want to save all my emails on a shared drive or an external drive. How can I do? I can not even find the file or the database! It's so easy to do with Microsoft Outlook. What happens with Thunderbird that it is so hard to understand? I'd appreciate any help. Thank you, Michael

    Help menu select troubleshooting information

    Click on the button that says RECORD SHOW

  • Photosmart HP 7520: Test Fax says pass but cannot send. Report says still no answer...

    This fax machine used to work perfectly.  Now I try the internal test and it PASSES all THE TESTS THE but is unable to send faxes. The paper prints "no answer."  He composed ok.  I tried to do this in several different places and it's always 'no response '.  I tried all the solutions on the support the customer.  We have high speed internet (a kind of device on our roof picks up signals. Not sure what it's called.)  Help, please.  I don't need to fax, and I want it to work again.

    Hi @golliwog7,

    Thanks for getting back to me.

    If you are still unable to fax after the support document, I suggest to contact HP Tech Support by phone, because they may have additional resources that could help move towards a resolution of this problem.

    What you can do, is to use the following link to create yourself a file number, then call and it can help to expedite the appeal process:

Maybe you are looking for