SwapDepth in numerical order!

Hi, I'm working on a project and I've broken it down so it
will be easier to manage. The first thing I want to do is:
I'd like to have 3 movieclips (more eventually but I'll start
with 3) that are numbered, 1, 2, 3 in their instance name. They
will each overlap.
I want a button that will, when pressed, change the stacking
order of the movieclips in order of number. It will start with 1,
and when the button is pressed number 2 will be placed above, and
so on.
When number 3, or whatever the highest movie is, is above the
others, I would like the process to start again, so that when the
button is clicked, movie number 1 will have the highest stacking
order, and so on.
This is just the first part of my project, and hopefully I'll
learn alot from any help I get.
Thanks!

quote:
Originally posted by:
kglad
push your movieclips into an array and push their depths into
an array. then custom sort your movieclips however you wish using
the sort() method of arrays and when complete, loop through your
array of movieclips using swapDepths() to (re)assign depths from
the depth array.
Would you be able to give a basic description of how I would
do this. I've been using AS for a few years but I'm still learning.
I'm not that familiar with sort(), but I know how arrays work.

Similar Messages

  • How can you get your music to download in numerical order?

    How do you get music to download in numerical order?

    Make sure the files are properly tagged in iTunes with the correct track numbering. You can check the track numbering by right->clicking on a track and choosing Get Info. Then in the GI window, click the Info tab.
    B-rock

  • Merge and Combine PDF files in a numerical order

    Greetings!
    I'm using Adobe Acrobat to create a photo LookBook or an eBook. I'm importing and merging straight from .JPEG's and Acrobat work's great. The JPEG's are sorted by capture date, renamed and numbered as such: "10_File.Name.jpg". However, once I attempt to merge over 100 files I noticed that the numerical order of the file names is wrong. You'll notice in the example below that when viewed by name, the three digit numbers begin after 10. Well, in this example it's twelve. This affects to page order of the combined .PDF file. How can I maintain consistent name order to avoid assembling the finished ebook by implementing two workflow steps. Meaning the first step to combine the double digit numbers, then the second step to combine the three digit numbers. What can I do to resolve this issue?
    Greatly appreciated!

    Try it with a leading zero ( 003_, 007_, 008_, 010_, 011_, and 012_ ).
    Be well...

  • Bridge not showing images in numerical order

    I'm in Bridge CS3 .  Out of a folder full of 108 images all are in numerical order except for 6 that are out of sequence.  I double and triple checked that my filenames were all uniform except for the numbers.  What's going on here, can someone shed some light?  I'm attaching a screen capture showing items 002 - 007 out of sequence.

    According to your screenshot the filter panel shows sort by Date created. If
    you change this (click on the name or the little triangles to show the
    submenu with this option) to sort by filename (you can choose between
    ascending and descending with the other arrow) it will show the correct
    order. There are also more sort orders to choose from
    What's going on here, can someone shed some light? 

  • I would like to update my copy of Aperture 3.1.1 as I have moved to a new computer. Do I need to download each update in numerical order to the present version?

    I have Aperture 3.1.1 oon my new MAcBook Pro, if I want to update this to the current version (3.4) do I have update each in numerical order,i.e., 3.1.1 to 3.1.2 to 3.1.3 , etc, up to3.4?  Or can I jump from3.1.1 to 3.4 (the current version)?

    hi frank! any chance you might have time to take a peek at my question? you have always been so helpful, i'd love your input.
    my thread is at the top of the discussions regarding uninstalling aperture and iphoto-long and complicated!
    your thoughts would be appreciated.
    thanks in advance!
    donna

  • How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard

    How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
    I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
    I have spent over an hour with techincal support who were unable to provide me with an answer

    It is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
    You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question?

  • When I open a file in bridge my files are no longer in numeric order and appear to be scrambled in exposure values

    When I open my files in bridge with CC, the images are no longer in numeric order but scrambled in what appears to be exposure values. When I use the CS5 software the files are fine so that should rule out a hard drive problem. It is a consistent problem with all hard drives on CC and is accurate on those same hard drives with CS5. Any ideas on how to correct this problem?

    Thanks for letting me know, Helene   Nice that I was able to get someone here on their way.
    Have a pleasant evening!
    Gene

  • Album song lists displayed out of numerical order

    Suddenly, the song lists for each album at the music store, are displayed out of numerical order. Is it something I did? If so how can I fix it? Makes it very hard to find and buy proper song.

    The sort-order for songs can be changed by clicking on the various column headings in the Music Store display.
    So make sure you've selected the left-most column for your sorting order.

  • Preserving numerical order of imported photos

    I am working on a project consisting of still photographs imported into FCP. the photos are in .psd format, and are named/numbered sequentially, such as this:
    DSCN0001, DSCN0002...etc.
    sometimes the numbers might not begin at 0001, but they are always in ascending numerical order.
    I have discovered that sometimes their order, after placed into the time line is out of numerical sequence, which is a problem bcs thousands of photos will be involved in this beast. tweezing thousands of images into correct order would be...not good..
    Is there a non-manual way for me to correct the photos' order after they've been place and/or ensure they they remain in correct numerical order even before I do the importing?
    thank you!
    r

    If you sort them by name in the Browser, they should go in the order that they appear there. but numbers are tricky sometimes. If they absolutely ascend I think it should work OK.
    You can also view by icons, and place them in order. left to right, then next row down - left to right etc.
    Jerry

  • How can I get the songs in my iPod Nano to sort in numerical order?....they show up tht way on iTunes, but on the Nano, they're out of order.

    they show up that way on iTunes when connected to the Nano, (in numerical order) but on the Nano, they're out of order.  The shake to shuttle is off.

    I dragged and dropped it from my desktop to my Nano (through iTunes) and it all loaded in order...if I take it from iTunes, it syncs everything, not just one playlist....even though I choose only one playlist...
    ??? So you are manually managing your iPod's contents. i.e you drag and drop content onto your Nano from under the Devices section in the left hand pane of iTunes.
    What did you drag and drop?
    B-rock

  • How to get buttons to play in numerical order

    On my menu page I have a total of seven buttons going left to right, slightly staggered up and down. They are labeled in correct order: Button 1, followed by Button 2...etc. When I simulate, however, and click the right arrow to go to the next video in the sequence, it goes from Button 1 to Button 3 (which are at same height), then to Button 2 (which is between Buttons 1 and 3 but slightly lower. I am sure it is because the items are staggered up and down and not perfectly in line, but how can I correct this so that when I push the "next" arrow it goes in proper numerical order?

    It sounds like you are using DVD SP to automatically assign Navigation. You can override this by clicking on each button in turn, then looking at the Inspector. Hit the Advanced Tab. There you will find the means to override the Navigation.

  • Won't display playlists in numerical order

    Hello,
    My iPod won't display my playlists in numerical order. Playlist 1 is listed below number 2 and 3. I've tried dragging it with no success.
    Thanks.

    Hi,
    By Default iChat uses port 5190 on the TCP Protocol to Login to the AIM servers.
    It gets info back including some Text chats on port 5190 on the UDP protocol.
    SOme modems and routers do not seem to like this use of the same port twice.
    Go to iChat > Preferences > Accounts > Server Settings tab
    Whilst Logged out of AIM change the port to 443
    Log back into AIM
    Also consider deactivating "Animate Buddies" and/or stopping any AppleScript that "Scrolls" the Status Message.
    3:49 PM Tuesday; January 1, 2008

  • Latest iphone sofware update fails to synch photos in numerical order!

    I've been informed that the reason why my photos on my 3g Iphone will no longer synch to it in numerical 'name' order is because the latest software update places them in 'date taken' order by default, consequently moving them out of my preferred option.
    I've been told I will need to use a third party software in order to place my photos back in numerical order. Does anyone know of a way round this, and if not, can anyone recommend suitable, preferably free software to acheive this?
    Many thanks.

    I've been informed that the reason why my photos on my 3g Iphone will no longer synch to it in numerical 'name' order is because the latest software update places them in 'date taken' order by default, consequently moving them out of my preferred option.
    I've been told I will need to use a third party software in order to place my photos back in numerical order. Does anyone know of a way round this, and if not, can anyone recommend suitable, preferably free software to acheive this?
    Many thanks.

  • Opening/Printing pdfs in numerical order

    How do you open/print pdf files in numerical order. We have a bunch of pdfs that are named in numerical order (like 001filename.pdf, 002filename.pdf etc.), which we need to print to a color printer in the same order. Whenever we try to open a bunch of these files at once, it opens them in a seemingly random order. It also does this when we try "print all" using Acrobat's batch processing. We are using Acrobat 8 Professional and OS 10.4.11. Any ideas?

    One way you could get around this is to open your Printer via "Print & Fax" System Preferences and "Stop" the printer. Then print all your PDFs to the printer but choose "add to queue" when the system warns that the printer is stopped. Once they are all in there, use the "Hold" and "Resume" buttons to put them in the correct order and then "Start" the printer.

  • HT4061 How do I keep photos in alpha-numerical order when syncing them from my laptop?

    How do I keep photos in alpha-numerical order when syncing them from my laptop?

    Read this: http://support.apple.com/kb/HT4221

Maybe you are looking for

  • Exceptions Table query help?

    I ahve two exceptions tables cust_day_of_week and cust_date Cust_day_of the week has following fields: Key_Id,Day_week,begintime,endtime 1,1,8,20 1--is oracle number for sunday cust_date has following fields Key_Id, exception_date,begintime,endtime 2

  • 5-screen (multi-monitor) nVidia xorg.conf -- my setup

    Hi. I would like to share my xorg.conf, since it took forever to get right. There isn't a lot of information out there for folks using > 2 monitors, or several graphics cards, or esoteric setups including rotation etc. I hope this will be useful; I w

  • How to enable a check box using the table LVC_S_FCAT

    hi, I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.

  • Column Totals of a table region in OAF Page

    Hi,     I developed a custom OAF page with a table region (NOT an Advanced table region). It has several columns and one of them is a flag column of checkbox type and also there is amount column. My requirement is to display totals on the amount colu

  • Are Smart Guides no longer reliable? Free transform is finnickey as well....

    I've noticed that, since downloading CC on its release last year (and keeping consistent with updates), there has been a noticeable unreliability with Smart Guides. I will have a rectangle, for example, that I want to snap to a guide or another shape