I got this loop that should loop until it reaches the length of an array
for (var i:int = 0; i < d_listDataArray.length; i++)
The problem is that, it should NEVER be greater than 15.(The array can be all from 1-500)

I guess the pseudo code for this would look like this:
for (var i:int = 0; i < d_listDataArray.length but maximum 15!!; i++) {

Is there any simple way to do this?
It's kind of hard to explain and I don't really know what to google for either..

Kind regards,
Leo.