How do I lope through array, delete clip and remove from array

I have a function that creates an instance of a movieClip and
adds it to an array.
In my gameloop I loop through the array and change some
values. Now I want a cleanup function that loops through the array,
and if the y value exceeds a certain value, I want to delete the
clip instance and remove the record in the Array.
Could someone please help me with the syntax for that? I will
lay the code out below.
Thankyou

I still haven't gotten an answer on this one, and my client
is starting to push me to fix the bug.
I have created a number of instances of a movie clip, and I
have also pushed references to each clip into an array.
Then I loop through the array and do things.
At some point I want to loop through the array and delete the
original clips (removeChild).
I don't know the syntax for that.
for (var n:int = 0; n<myClipArray.length; n++){
removeChild (myClipArray[n])
// I WANT THE LINE ABOVE TO DELETE THE MOVIE CLIP
I'd like to think there is some way to do that.

Similar Messages

  • How can I add and remove from arrays?

    I made a little thing that has to do with badges. Theres 6 badges, and they load out with attachMovie. I want to be able to change the badges, so how would I be able to change things in an array? Like adding and removing numbers in it.

    Look up the Array class in the help documents and go thru all of the various methods available for it.  All of the adding and removing things methods will be there.

  • How can i set authrization to delete/change email address from broadcasting

    How can i set authorization to delete/change email address from information broadcasting. I would like to set an authorization because other bi users also have an authority to change my auto mail settings. How can i restrict this?

    Auth object for Broadcasting in 7.0 server
    RSRD_ADMIN - Broadcasting (7.x) Administration
    Check the authorizations for Broadcasting in the below SAP notes.
    Authorization check for broadcasting settings
    SAP Note Number: 1053944
    Please go through this thread for additional info.
    Authorizations for Broadcasting

  • How do I delete music and photos from my iCloud account? I've read below that you can't. Really? Is that correct?

    How do I delete music and photos from my iCloud account? I've read that you can't. Really? Is that true?

    You can delete photo stream photos from iCloud by just deleting them on your iPod.  My photo stream photos are automatically deleted from iCloud after 30 days anyway.  Just so you are aware, deleting photo stream photos doesn't free up any space in your account as they don't use your personal iCloud account storage.
    You can't delete music from iCloud because the music isn't stored in your account; it's stored in the iTunes store.  What you are seeing are links to your previously purchased music in the iTuens store, allowing you to redownload them if you want to.  You can't remove anything from your list of previous purchases.  If you don't want to see these "iTunes in the Cloud" purchases in your song list, go to Settings>iTunes & App Store and turn off Music under Show All.  LIke photo stream photos, this music doesn't use any of your personal iCloud account storage.

  • Re install CS5.1: Mac 10.7 failed - upgraded to Mac 10.9, CS 5.1 did not transfer. How do I reinstall - do I delete what I coped from external HD, then reinstall from disks?

    Re install CS5.1??
    Mac 10.7 failed - upgraded to Mac 10.9, CS 5.1 did not transfer from external HD. How do I reinstall - do I delete what I coped from external HD, then reinstall from disks?

    Adobe applications should be installed, not transferred.  If yoiu have the disks then yes, use them.  IF you do not you can download from:
    Download and Installation Help -
    https://helpx.adobe.com/download-install.html

  • Our daughter figured out on her own how to delete songs and apps from her IPAD2. Her parents would like to know how to delete such files and then how to prevent our daughter from doing it.

    Our daughter figured out on her own how to delete songs and apps from her IPAD2. Drives us crazy since we continually have to reload these files. Her parents would like to know
    1. how she did it (delete files) and
    2. how to prevent her from deleting files in the future.

    http://support.apple.com/kb/ht4213

  • How do i delete photos and videos from my ipad without deleting them from my imac/

    how do i delete photos and videos from ipad without deleting them from my imac?

    Deleting photos and videos on your iPad will have no effect on your iMac.

  • How to delete photos and videos from iphone after transferring them to iCould?

    iPhone 4S
    iOS- 8.1.1
    After transferring photos and videos from my iphone to icloud, how to delete photos and videos from my iPhone 4S 

    Thanks to both of you for your replies.
    For some reason, the Camera & Scanner Wizard has started to detect the phone now. Maybe it will stop again in the future, but for now it's OK.
    I do have iTunes installed, and the iPhone's still not appearing in Windows Explorer. I might reinstall if the problem recurs.
    Yep, it's an official Apple cable, but it's a bit old. I got it with my iPod a few years back. Maybe i should start using that as the charger cable, and the new cable i got with my iPhone for syncing?
    Thanks again for your replies.

  • How do I delete videos and pictures from the iphone folder called "phone"?

    If I go to albums in the pictures app I have a folder called "phone". I want to clear up some space and delete pictures and videos from there, but there is no option "delete". These pictures are not in the icloud, but seem to be stored on the phone itself. I tried to access this folder through itunes and iphoto, but still n possibility to delete them. is there any way to delete those without flattening the whole thing?
    Thanks!

    It is synced you have to have the computer to do it.

  • How can I handle data that I need to populate from arrays ?

    Hi,
    I am using JDeveloper 10g(10.1.3.3) and I have a case where I consume some web services and populate arrays from these calls.
    Say that I have a search form where the user select a state from a combobox then the city combobox is refreshed according to the selected state.
    And these state and city are based on different views. Since I populate the views programmatically I couldn't use a viewlink.
    Any suggestion? What should I be using to support a data source like this?
    Thanks

    When I do that I get an error saying that
    JBO-30003: The application pool (zzz.activity.model.ActModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "OCRevenueCenters2" because it is a destination in a view link
    This is happening at line setQuery(null);
        protected void create() {
            super.create();
            // Setup string arrays of codes and values from VO custom properties
            initializeStaticData();
            rows = (revenueCenters != null) ? revenueCenters.length : 0;
            // Wipe out all traces of a query for this VO
            getViewDef().setQuery(null);
            getViewDef().setSelectClause(null);
            setQuery(null);
        }Is there any workaround?
    Thanks

  • How do I get my wife's photos and video from her iCloud to my iPad?

    How do I get my wife's photos and video from her iCloud to my iPad. She no longer has an iDevice and I want to retrieve some really sentimental photos and videos of my grandson. I've logged on to her iCloud account on my iPad, but don't know what to do next.
    Thanks
    Tony

    Her camera roll photos and videos would be included in her backup.  Restoring her backup to the iPad should recover them.
    Start by creating a current backup of your iPad that you can restore your data from later.  It's faster if you do this on your computer using iTunes; if you can't, create a backup in your iCloud account.  If you can back up to your computer, do this by connecting the iPad to your computer, opening iTunes and going to File>Devices>Back Up.  Then go to File>Devices>Transfer Purchases.
    Then erase the iPad and restore her iCloud backup as explained here: https://support.apple.com/kb/ph12521.  When it's done, import the recovered photos and videos to your computer as explained here: http://support.apple.com/kb/HT4083.
    Then erase the iPad again and restore the backup you made earlier, either from iTunes or from iCloud depending on where you backed it up.
    If you want the photos back on the iPad, put them in a folder and sync them to your iPad by selecting the folder on the Photos tab of your iTunes sync settings and syncing.  If you want to videos back on your iPad, import them to your iTunes library (File>Add to Library), then sync them to your iPad from the Movies tab of your iTunes sync settings.  You will then find them in the Home Movies section of the Videos app on your iPad.  Just so you are aware, photos that you sync to your iPad can only be removed later by syncing them off your iPad (by deselecting the folder on the Photos tab and syncing again).  They can't be deleted on the iPad itself.

  • Deleting photos and audiobooks from iphone

    How do I delete photos and audiobooks from my iphone? How do I see how much memory I have left?

    By not syncing them on next sync.
    To see what is available, go to Settings, General, then About.
    Or plug into iTunes.

  • How can I remove apps that I downloaded and removed from "purchased" at App Store?

    How can I remove some apps that I downloaded and removed from "purchased" list at App Store??
    Thanks Vic

    You can't remove apps from the purchased list. It's impossible. You can hide them but not delete them from the purchased list.
    Tap and hold down on the app icon until it wiggles then tap the X on the icon to delete it, tap the home button to stop apps from wiggling.

  • How do i move my tv shows, movies and books from my mac to my time capsule to free up space on my mac?

    how do i move my tv shows, movies and books from my mac to my time capsule to free up space on my mac?

    Probably the easiest way is to drag the files from the iTunes window to the external drive.  Make sure they have copied.  Delete them from iTunes.  Hold down the option key and drag the copied files back to iTunes.  This will add them back but mapped to their new location and the option/alt key will stop the files from being copied to your Media folder on the internal drive.
    In future if you are adding a batch of files in one go you can set preferences temporarily to store media on the external drive, then change back again.  See also:  iTunes 12 for Mac: Change where your iTunes files are stored - http://support.apple.com/kb/PH19507

  • I have lost my photos, safari and camera.  My grandson somehow delete camera and safari from phone and when I restored the photo's disappeared.  Can anyone help me?

    My grandson deleted Safari and camera from my iphone.  When trying to restore the icons it deleted all my photos from phone.  On top of this the computer I always used crashed and unable to recover them from there.  I think I might have saved the them on the icloud but have no clue how to restore from there.  Please some one help me!

    You can't delete Safari and Camera - the most you can do is to move the icons to a differents screen.
    If you have a backup of your iPhone, you can do a Restore from Backup. If you didn't have a backup, I'm afraid they're gone.
    For the future:
    Alway always always keep a backup, on iTunes (my prefernce) or in iCloud (more convenient for some). There is always a risk to anything that's only on the ihone

Maybe you are looking for

  • Stale data error while trying to update row.

    Hi, I have a search page, from where i would like to select a particular record and update some of its attributes. But when i try to commit the transaction, i get the error below: Unable to perform transaction on the record. \nCause: The record conta

  • Photoshop CS5 12.1 crashing daily.

    PS, ID, and ILL all crash if they are left open for a long amount of time, i.e. one-half hour. It doesn't matter which program. I'm pasting my computer info and the latest crash log for help. Both PS and my system are up to date with the latest upgra

  • To create new user for rpd with Admin access in obiee 10g

    Hi All, I need to create a user in RPD which has equivalent privileges as Administrator in RPD.Please note that this is for accessing RPD Admin not for Dashboard admin access.Can anyone please let me know of how we shall implement this?.. Regards, Ve

  • Best guide or tutorial for oracle 10 g rac on vmware ?

    hi, can any one tell me best guide ,notes or Tutorial for oracle 10 g rac on vmware ? Regards, A.Anwar

  • Need to startup in two different systems

    I have an iMac which I've recently upgraded to 10.6.8 (Snow Leopard). I can no longer use Quark 6, Snow Leopard supports only the latest version of Quark. This is a one-time use of Quark so I really don't want to upgrade if I don't have to. Is there