# For Loops & Splicing

**URL:** <https://forum.kirupa.com/t/for-loops-splicing/292022>\
**Category:** flash\
**Created:** [July 9, 2009, 4:15am UTC](https://forum.kirupa.com/t/for-loops-splicing/292022 "2009-07-09T04:15:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pi3rc3](https://avatars.discourse-cdn.com/v4/letter/p/dfb087/32.png) [@pi3rc3](https://forum.kirupa.com/u/pi3rc3)\
**Post date:** [July 9, 2009, 4:15am UTC](https://forum.kirupa.com/t/for-loops-splicing/292022/1 "2009-07-09T04:15:07Z")

</div>

this question has really been boggeling my mind, if i have say

```auto
for(var i:int = 0;i<a.length;i++){
if(a*.something)a.splice(a.indexOf(a*, 1);
}

```

will that mess up the entire for loop because i now spliced something out of the array? and if so how can i go about splicing stuff out of an array im doing a for loop on?
