# Checking type of element in mixed Array

**URL:** <https://forum.kirupa.com/t/checking-type-of-element-in-mixed-array/319686>\
**Category:** Uncategorized\
**Created:** [March 1, 2011, 8:20pm UTC](https://forum.kirupa.com/t/checking-type-of-element-in-mixed-array/319686 "2011-03-01T20:20:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smuella](https://avatars.discourse-cdn.com/v4/letter/s/7993a0/32.png) [@smuella](https://forum.kirupa.com/u/smuella)\
**Post date:** [March 1, 2011, 8:20pm UTC](https://forum.kirupa.com/t/checking-type-of-element-in-mixed-array/319686/1 "2011-03-01T20:20:47Z")

</div>

Hi there,

I have a mixed Array, containing instances of a custom Image class, and of the FLVPlayback class… I want to be able to loop through the Array, and check whether each element is a video or an image - is there any way of doing this?

Many thanks,

S
