[noob] Using setChildIndex to keep an array of elements above all the other kids?

Hi all

I am trying to develop my little adventure game (I used a heck of a lot of event listeners; not ashamed of me until I become pro).

I have a set of "itemAttach" s (circles generated in the constructor function I intend using temporarily to "contain" elements (other kids) who are are, i.e. assigning to X and Y of a point X and Y an itemAttach1, 2, etc.)

That is, I have various scenes (children that cover the entire scene) are added and removed that end up hiding from the itemAttach.

Can I use setChildIndex (perhaps when they are generated in the table) to keep the itemAttach over any child who comes or goes? Wouldn't be better to put any other child to go just behind the index number of the itemAttach?

Any help would be appreciated. Certainly, I would like to know if any other information is needed.

ACEs here and FLA files: https://www.mediafire.com/#is1k9b5mr9t2c

Here is the table of the constructor:

itemAttachArray = new Array();

for (var i: uint = 0; i < 7; i ++) {}

var itemAttach:ItemAttach = new ItemAttach();

itemAttach.x = 50 * i;

itemAttach.y = 400;

addChild (itemAttach);

itemAttachArray.push (itemAttach);

trace (itemAttachArray);

}

Sorry, basically I think that for now, I'll just put my 'scenes' to an index number of 0 whenever the function runs to add them while they are under everything else. I discovered that apparently I can use setChildIndex as setChildIndex (ChildName, numero_index) as setChildIndex (campScene, 0). (I thought he must be more complex than that, but it seems actually sufficient).

Just me being a noob.

Tags: Adobe Animate

Similar Questions

  • Firefox has crashed, and now I have a constant stream of blank tabs that keep popping up in front of all the others. They will not erase.

    First all the tabs I had open suddenly lacking at the Firefox help page. Now I have a constant stream of blank tabs that keep popping up in front of others. I click again to remove the but they back just pop up. Also whenever I delete a tab while browsing a Web site, I get another white added to the front of all the others. I uninstalled and reinstalled the program and it did not help.

    You ensure that you do not have a problem with a sticky key F1 on your keyboard?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    If this does not help then try a new profile.

    See basic troubleshooting: a new profile

    Your above posted the details of the system tampon() obsolete show with known risks to stability and security that you should update.

    1. Shockwave Flash 10.1 r53
    2. Next-generation Java plug-in 1.6.0_14 for Mozilla browsers

    Update the Flash plugin to the latest version.

    Update the Java plugin to the latest version.

  • How to manage the photos Lightroom when using 2 computers, keeping any changes made on one or the other?

    Based on http://forums.Adobe.com/thread/1308132?TSTART=0 I decided to add each question separately:

    Hello, I am very interested in buying Lightroom 5.2. I tried the RC that was missing today. Yet, I have several questions that I can't find really good conclusive answers, I'd like to get an answer before buying LR. Please do not write maybe like this or that (assumptions), because I don't want to start my entire workflow and then realize that I have to change all around, please reply, if you know for sure that something works and you are, preferably, using this method too.

    Is the big question, where I want to especially a conclusive answer:  How to manage the photos Lightroom when using 2 computers, keeping all the changes made on one of them, using the same photos for editing. I'm not going to use DNG. Details: I mainly use my old MacBook Pro, but I wish I could use my PC as it is much better (card: i5 2500K, 16 GB of RAM, SSD, USB3, nVidia GTX 560 TI etc.). I have 2 external HD that I could use, one for backup and one for the actual Photos/changes. I you will probably need to use as my internal HDs are fairly complete and I cannot be the kind of things simply delete or move to one (developer, without loss of music, programs etc.).

    On this basis, how do I save all such Photos folder (pictures and retouching and preferably presets too)?

    According to me, that it should be possible to work cross-platform without having to create a link to the files each time, or without having to keep export/import of the catalog, keeping the single catalog and the picture library on an external drive that is then switched between systems as needed.

    Obvious first requirement is an external drive that is formatted in a way (for example, FAT32) that it can be used on both platforms in read/write mode. Given that, if the catalogue AND folder parent si le catalogue ET le dossier parent images are both set to the same level in a global parent folder, then it should be possible to take advatage of ability of Lightroom to use relative paths instead of absolute paths to detect the images, no matter if the player is named (Mac) or lettering (PC). This is how "export as catalog of ' works, that is, it creates a 'package', alias a parent folder, containing the catalog and a replica of the folder hierarchy to exported along with the catalog images. Take this 'package' to another system (same OS or not) and "it works" even if the drive letter is different or the operating system is different... because the relative path of the image catalogue is always the same.

    I have not tested this cross-platform (if I have between various PC systems with letters of different readers) so for me it's still just a theory, but there may be others who have done this successfully.

  • This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system (Code 12)

    Guys, I have a problem. So, my laptop has 2 graphics cards, an integrated course of the Intel HD graphics (which works perfectly) and the other being the dedicated Nvidia graphics (Nvidia GeForce 940 m). Until 2 days ago, everything was going well and running.

    I have the application experience GeForce and it prompted me that there is a new driver update should I download. He started to install then after rebooting to complete the installation, it failed. I checked my device manager and saw a yellow exclamation under under my Nvidia graphics card (remember, my laptop has two graphics cards: Nvidia graphics card and Intel HD graphics that works correctly). I immediately checked the details, and he said:

    "This device cannot find enough free resources that it can use. (Code 12) »

    "If you want to use this device, you will need to disable one of the other devices on this system."

    This seemed very strange, because it was LITERALLY working properly before I was invited about update driver I got, so I don't know what to do - as a matter of fact, literally, I finished this game, Deadpool, with my Nvidia card that I put as the default graphics card, a few hours before , so I don't know why this happened. Any help? I'm looking for a logical answer to this, guys!

    Additional information:

    A few days before this happened, I went to my store local pc and installed an extra 4 gigs of ram on my 4 existing to make 8. Don't know if it's useful, but anyway

    If I pick up my laptop and shake it side by side, I hear a slight rattling noise, and it seems a little loose (I found this out after seeing the error message). The noise seems to come from just below the middle of my keyboard (I'm using a laptop). If for some reason, my Nvidia card is loose? Is this possible?

    I am quite technologically inclined, but not to the extent of removing components and reconstruction cell phones / pc and access the bios and what not. I can only remove/add ram.

    I want to know if its something I am able to fix it because I do not necessarily want to go running and sending my laptop places - only my pc up shop.

    Here is the location of my Nvidia card: PCI Slot 4 (PCI bus 4, device 0, function 0)

    My specs:

    Acer TravelMate p257-MG

    Windows 7 business

    Intel core i5-5200u 2.20 GHz 2.20 Ghz processor

    8.00 GB of ram

    64-bit operating system

    1 t hard drive

    940 m Intel HD graphics 5500 & Nvidia Geforce card

    Just to recap, I get the error on my Nvidia graphics card code, "this device cannot find enough free resources that it can use. (Code 12) ""If you want to use this device, you will need to disable one of the other devices on this system. »

    Thanks in advance!

    Hello

    Thank you for your response.

    I appreciate your time.

    I suggest you run ' Intel Chipset Software Installation Utility ' and check.
    Reference:
    http://www.Intel.com/content/www/us/en/support/software/Chipset-Software/Intel-chipset-software-installation-utility.html

    Please keep us updated.

    Thank you

  • If anyone can help, I just bought a 2011 mac book pro and I use it for school and I work in education and currently I have lightroom, photoshop and adobe DC, are all the other apps I put on it?

    If anyone can help, I just bought a 2011 mac book pro and I use it for school and I work in education and currently I have lightroom, photoshop and adobe DC, are all the other apps I put on it?

    Chaka - welcome!

    What you want to do on your "new" MBP?

  • Device base system driver code (28)... I use a sony vgn z555dn laptop after I've upgraded to windows 7 this is the error that I can't fix all the others, I managed to solve... Please help

    Remember - this is a public forum so never post private information such as numbers of mail or telephone

    Device base system driver code (28)... I use a sony vgn z555dn laptop after I've upgraded to windows 7 this is the error that I can't fix all the others, I managed to solve... Please help

    Hello

    You updated the BIOS and motherboard (chipset drivers)? All device drivers? By checking
    manually on the link above?

    If so you need to contact the Sony Support as the error is in the provided OEM drivers and not
    Windows 7.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • After, the "floppy" and removing, using that I keep getting a message "Unable to read the articles" I used the button "cancle" a dozen times, but he always comes back. any ideas?.

    Nothing so far, you have tried many things.

    Hello
     

    1. is this a problem with all the readers of the floppy disk that you use, or is it limited to a particular floppy drive?
    2. when the floppy drive was working properly the last time?

    Check if the problem exists in Safe Mode, if the drive works as expected in mode safe, and then we can solve the problem in the clean boot state. It is a possibility that another application is at the origin of the conflict.

    Step has. See the article below for the procedure safe mode in Windows XP
    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222
     
    Step B. You need to perform a clean boot to find the program that is causing and then disable or remove.
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us
    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I use windows 10 on pc. Creative cloud must update. He gets 2% and keep saying "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom will not wor

    I use windows 10 on pc. Creative cloud must update. He arrived at 2% and stops, saying: "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom do not work for me right now.

    Close applications or contradictory processes

    Solve the problems of downloading and installation of Adobe Creative Cloud

    Mylenium

  • I have 17 Friefox and use Windows 7. I can't click on all the links at the top of the pages. Does anyone else have this problem? How to fix?

    I've updated to 17 FF and use Windows 7 on a 2 year old Sony Vaio laptop. Since the update, I can't click on some links, most of which seem to be located at the top of web pages. I also have problems with click and hold to scroll through the long (on the side). He is very picky on where the button sliding I can click on to make it work. I have no problem with the up arrow and down buttons on the right side.

    How to fix?

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • What formula would I use to add all the other ranks in my spreadsheet. I want to compare the fees and expenses of 2015 since they are incurred for 2016

    On the same worksheet, I want a spreadsheet to compare spending 2015 totals by month in several categories to 2016 expenses when they occur. What is the best way to implement this worksheet? It is essentially a budget, but wants to see how the category spending increase or decrease all the months for 2016.

    Thanks for any help.

    Hi Bruddah,

    I would like to start by rearranging your table so that the amounts from here to 2015 and 2016 switch not in the column, as implied in your question.

    Vocabulary of the numbers:

    worksheet not sentence numbers

    Worksheet: A spreadsheet. Usually abbreviated to 'Document '.

    Leaf: a blank canvas on which are placed the tables and other objects. A Document has at least one and maybe more than one.

    Table: an object consisting of one or more cells, arranged in rows and columns.

    Take a look at the personal Budget template (file > new form model...), specifically the summary in the table of categories.

    It uses the formula: = SUMIF (Transactions::Category, A2, Amount)

    Since you want to compare the volumes in several CATEGORIES at the specific two-year MONTH, you will need SUMIFS, using three test values, pairs of condition.

    Syntax: = SUMIFS (sum of the values,test values,condition,test values,condition,test values,condition)

    I would like to know if it is enough information. If this isn't the case, I'll be later in the day to enter more specific details. In the meantime, a screenshot of your table and the lines of (at least) your transactions table header would be probably useful.

    Kind regards

    Barry

  • Using a Windows ME computer as a file server for the other windows PC on my network.

    Hi, I was so excited when I heard that my friend gave me his old pc! It turns out it was a Windows ME I was going to build a server with this old pc, but when I found out it was a Windows ME computer, I was mad.

    Enough with the stories! I was wondering what I can use to share files with a windows ME pc host with 10 connecting windows pc to this? Aedan thanks.

    It is doubtful that the machine me has enough resources to do much of anything.  It is after all the 16 years.  You may be able to force them to work, but not worth the time or effort and will probably cause a lot of frustration.

  • Photosmart 7510 - I want to use only black ink since I don't have all the need for a color.

    Photosmart 7510 - I want to use only black ink since I mainly use this for work and don't have all the need for a color. If I have more ink, can I just replace the black and it still work? Thank you very much for any information you may have!

    Hello

    I did a few test last year, you can print black only master always need color ink for the printer. Black setting only as a default printer will only print black and it consumes a little over heating of the process color inks. In short, it will not be printed correctly when run out of color ink (s) or does not start at all.

    Kind regards.

  • I have 2 databases I use Lightroom how to identify objects in one and not the other, I changed

    I use my cell phone as my computer on travel. When I come home, I transfer my data to my main catalog on my desktop. Sometimes, the files remain on my laptop and I made changes to some of my files.

    I was trying to identify objects through finder that I've changed since I added changed files from my laptop to my desktop. My intention was to identify the XMP files that have changed since I added the files from my laptop to my desktop.

    By analyzing what I see in the finder, I find that Lightroom data seem unwise. For example, is as follows the first line in the finder

    File: _MG_1180.xmp

    Date added: 05/05/16

    Creation date: 16/04/16

    Update: 16/04/16

    1. I've been constantly adding to my catalog when I import my SD card in my laptop. I'm waiting for my date added date should be the same as the date of the creation Date. Why date is later than the date of creation?

    2. to play back my 2 libraries, can I just move my files from one to the other xmp?

    Do not do this through xmp. Some elements are never written to .xmp.

    To do this through the sequence of command as follows:

    • On the laptop, in Lightroom, select the photos you want, then use the menu file-> export as catalog command. If the pictures are not on the desktop, check the box that says "negative."
    • Copy all the files created on the desktop
    • On the desktop, use the command file-> import from another catalog and point Lightroom in the laptop just transferred catalog file.

    Which leaves the question of how to identify the photos changed recently. Create a collection of smart with the criterion that the modification Date is greater than YYYY-MM-DD, where of course which is the date of interest.

  • Re: Files I've accidentally pressed + create new folder. It changed all my file names to now show the full path that is users/Michael/pictures... and I see is no longer the name of the folder.  I use folders for EVERYTHING and I need to go all the way

    CC Lightroom library module: I tried to do something else and I pressed on '+ create a new folder.  All the names of my files now have the full path as their name, i.e. of C:\Users/Michael...  It changed my folder name so much more that I can see is no longer.  I use folders for EVERYTHING.  I never use collections or anything else, and my inability to quickly determine the names of my files is driving me crazy.  How can I get rid of all this nonsense of path?  He was never there until I hit this sign.

    On the same dropdown menu selected "name of folder only.

  • Problem with activation by using two hard drives (XP on one) and Win7 on the other

    I have XP sp3 installed on a hard drive and Win7 on another. I never use XP, I only keep there to keep my Win7 works great.

    I do not remember how did I installed win7, but I pretty sure I booted from a USB key and installed on a new hard drive.

    It seems that XP hard drive is in charge the boot settings, or something because I have set as the boot default HDD (in bios), and then select Windows 7 in boot menu that follows.

    If I select the hard disks Windows 7 the default boot hard drive, Windows restores activation. Select the hard drive with XP and win7 then choosing in the start menu, works very well, the activation is OK again.

    I'll install Win8 (that I already bought), but I still need to figure out what to do with this situation, because I need to replace the hard drive where XP is installed and install Win8 and have a double Win7 and boot 8.

    It is possible to solve the problem of activation, without having me call Microsoft? I use a utility called EasyBCD 2.2 and I was wondering if maybe this program could help fix me.

    Any thoughts?
    Wilfredo.

    Disconnect the drive xp, fix the win7 installation and activate if necessary

Maybe you are looking for

  • Red dot for Messages

    My phone watch is no longer the red dot for messages, a message or 6 messages. Why at - it go further? Help please!

  • EVGA GeForce GTX 650 desktop computer HP Pavilion HPE h8-1120une Ti

    I have had this computer ( http://support.hp.com/us-en/document/c03000614 ) this computer for about 2-3 years and I plan on updating my the 530 gt graphics card to the gtx 650 ti ( http://www.amazon.com/EVGA-GeForce-Dual-Link-Graphics-01G-P4-3650-KR/

  • Y50 - 70 - screen display either HD or UHD on laptop Y50-70?

    Dear Sir I have laptop Lenovo Y50-70. On the keyboard there are various stickers as always on USB, HD webcam, JBL speakers brand Ultra screen HD, Dolby digital plus. However, on the sticker of the ULTRA HD SCREEN, in very small letters it is written

  • Batch file to print the command Ipconfig at a .txt

    Can anyone help?On the left side is the outputThe codeing right side

  • How to create a menu

    I took a quick glance at some of the sample applications, but the default behavior seems to be for the menu to be accessible by clicking on the trackball. Issues related to the: 1. How can a built menu which is accessible through the menu button. 2.