How can I move a clip behind a clip in flash?

I make a game where there are bombs and enemies. I want the enemy to get behind the bombs. These enemies are in an array called 'enemies' and the bombs are in an array called "bombs", they move from the top of the screen down. Is there any type of code that can make my enemies under my bombs?

Depending on what add you to the display list most recently appears on top.  so, you can always use:

for (var i: int = 0; i<>

Bombs [i] .parent. AddChild (Bombs [i]);

}

Alternatively, you can add objects to the 0 depth that you want to appear below the rest of the display list:

for (var i: int = 0; i<>

Enemies [i] .addChildAt (Enemies [i], 0);

}

but you might find it easier (and better coding) to add a parent of your bombs and parent of your enemies to the desired depth.  then just add the bombs to their parent and enemies to their parent and will solve all your problems of depth.

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.

  • In windows movie maker, how can I change my clips so that they all have the same duration after that I added the?

    Original title: Windows Movie Maker

    In windows movie maker, how can I change my clips so that they all have the same duration after that I added the?

    Hi Ashley44,

    You can use the trim function in Windows Movie Maker to change the duration of the film. See the link below for the steps

    To trim a video clip

    If you want more advanced features, you can use Windows Live Movie Maker

    http://explore.live.com/Windows-Live-Movie-Maker-stunning-in-seconds?OS=other

  • How can Windows movie maker, I stop the music to a certain clip and not replay

    How can Windows movie maker, I stop the music, play a certain clip and not play again?

    1. Add the video file.

    2. on the home tab use Add music to add music to the full clip.

    3 move the vertical slider on the film to where you want the music to stop.

    4. on the Edit tab, select Split.

    5. now, using mouse cursor select just the audio running along the top of the video AFTER your split point.

    6. press delete on your keyboard.

    You could also do it by reducing the volume of the section of audio after the split to zero.

    All the answers and suggestions are provided by an enthusiastic amateur and are therefore no explicit or implicit guarantee. Basically, you use my suggestions at your own risk.

  • How can I move photos &amp; video library?

    How can I move a few photos and some video clips from one library to another library?

    I created 2 libraries and want to better organize my photos and videos by moving a selection of photos and videos of the first library in my second library.

    How can I do this? Please helppppp

    Photos has no tool to move photos between libraries.

    Do it manually by exporting pictures of the first library with "file > export > export original unmodified" and then import export photos and videos of the other library.  After you have verified that they mattered much, remove them from the original library.

    Move photos between libraries is easier with PowerPhotos.  Check it out at PowerPhotos ( software of Fat Cat-PowerPhotos)

    There is a problem, however.  You cannot move, it publishes versions between librarues, so that the changes can be reversed.  The transfer will be frozen. You can move only the edited versions or original, or both, but not as a pair of the original and the version.

  • How can I move files and leave a shortcut.lnk pointing to the new location.

    I'm trying to move only a TON of old files to a hard drive to free up space to backup.  I can't empty just them, it's a working environment with integrated (and archaic) process.  They must be able to find the new files without go hunting for them.  How can I move all the files that has not been changed since 2 years and leaves a link behind that points to the new location?

    I used successfully a utility call NoClone.  The goal is to search for duplicate files, but it has a way to specify any search string (date function as you requested) and then move all files to a new location, leaving behind .lnk files

    I used it to clear space on file shares, any movement toward a archive read-only stored on a NAS that gets backed up once per year.  In this way, nothing changes on the NAS of the end user (no need to save often).  If you need to edit the file, they copy him on its original location.

    If you have a lot of files, download the business version.

    In recent years I finally used, so I don't know if there is a newer version that might not work as did the old version.

  • How can I move files/folders to iCloud back to their original finder folder

    I just updated to OS Sierra and noticed that my documents folder was empty. How can I move files/folders to iCloud back to their original finder folder?

    Thank you

    The Duke

    See it - Add your files, Desktop and Documents in iCloud Drive - Apple Support

  • How can I move applications to iPhone7 more page host?

    How can I move apps on the iPhone plus 7?  The old method of holding up to jiggle apps app and it enters edit mode does not work.

    With 3D Touch, you cannot press the icon without getting another action. With the new devices with 3D Touch, just gently place your finger on the icon and wait for it to start the jiggling. Then you can drag it to the new location.

  • How can I move documents in iCloud to my hard drive

    How can I move documents in iCloud to my hard drive

    See this - copies of records or make your iCloud - Apple Support data

  • My phone icon left the lower bar.  How can I move it back

    My phone icon left the lower bar.  How can I move it back

    Press and hold on the icon of the app until it wiggles and then drag it in the dock. After you do this, press the home button to stop agitation apps. Note that you can have 4 icons in the dock.

    Organize the applications on your iPhone, iPad or iPod touch - Apple Support

  • How can I move a movie from my mac to my iphone 6 using itunes 12.4.3.1?

    How can I move a movie from my mac to my iphone 6 using itunes 12.4.3.1? I know that you can synchronize, but where I put the (m4v) movie on my computer, and then how I do I synchronize? I tried to drop, but my phone doesn't pair with my Mac Pro 5.1...

    Have you tried to put the movie in area iTunes movies?

  • How can I move the toolbar of the tabs in the sidebar to the top of the windw with other toolbars?

    My tab toolbar is a sidebar on the left side of the screen. I just downloaded v. 38.05 after doing a clean install of Mavericks on my MacBook Pro. Something didn't look right, but I couldn't understand it at fisrt. It is only afterwards that I had opened more than 1 pill I discovered the toolbar of the tab was "hidden" and not in its usual place? I want it to work along the top of the window to my other toolbars at the same time. How can I move it?

    Thank you!

    You only have the tabs in a side bar if you have installed an extension that provides this feature.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • When sharing my project there are some clips that show a red screen with a camera saying error. How can I solve these clips if I can share the project correctly?

    When sharing my project there are some clips that show a red screen with a camera saying error. How can I solve these clips if I can share the project correctly?

    This happens usually when the import process was not completed. If you have the original camera card - or a copy of the computer of the map - you can probably use the re-import command (on the file menu) to fix things. In addition, it is possible that the original media is imported, but this transcoding was not. If you have chosen to optimise upon import, try to select clips in the browser and transcoding to optimized.

    Russ

  • How can I move the button reload of the page in firefox OSX for next to the back button where it was before I updated.

    How can I move the button reload of the page in firefox OSX for next to the back button where it was before I updated.
    I know there is an addon for windows Classic theme, but I need a fix for osx... its very frustrating when you update and things like this change and can be customized to the way we are used to using the browser. his counter intuitive to have the page button refresh so far from the back and home buttons.

    never mind, I found the preferences in the addon manager... Thanks again!

Maybe you are looking for

  • A25-S307 graphics card problem...

    Hello..I have an A25-S307.As you know it uses 32 MB of 512 MB of Ram for the graphics card.But the ram adapter shown as it is 16 MB.What is the solution to again make 32 MB?

  • Equium L40-14i - where to find the SATA drivers?

    Can someone tell me where I can get the SATA drivers to allow me to install Windows XP on the machine? I scoured the net, but I can't find anything definitave. I managed to find a few ece files, but windows will not let me check out them! Please help

  • Loss of 30 GB of photos during the update to iphoto to photo

    I had 89.6 GB of photos on my Mac Air. She updated iphoto to photo and now I only 60.2 GB of photos on my system. Is this normal? Is there anyway to recover the lost photos or even know what has been lost? I did a lot of backups of my pictures before

  • How to register McAfee?

    Hi guys,. just bought a TPT last week, first thing I did was update to ICS, version 4.03 so currently running. Does anyone know how to activate the McAfee antivirus which is delivered? Only, I get an error: registration error - user not configured. T

  • How to restore my computer to its original settings

    I am selling my computer hwow can I remove power from her