# How can i change what value an array returns?

**URL:** https://forum.kirupa.com/t/how-can-i-change-what-value-an-array-returns/243734
**Category:** flash
**Created:** [November 10, 2007, 12:03am UTC](https://forum.kirupa.com/t/how-can-i-change-what-value-an-array-returns/243734 "2007-11-10T00:03:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ferdy\_beekmans](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@ferdy\_beekmans](https://forum.kirupa.com/u/ferdy_beekmans)
#### Post date: [November 10, 2007, 12:03am UTC](https://forum.kirupa.com/t/how-can-i-change-what-value-an-array-returns/243734/1 "2007-11-10T00:03:33Z")

</div>

I am trying to make a subclass of Array so that when i ask for a certain value of the array, i can alter what value i get. What method do i need to override to achieve this?
