# Length property

**URL:** https://forum.kirupa.com/t/length-property/297369
**Category:** Uncategorized
**Created:** [September 30, 2009, 11:22pm UTC](https://forum.kirupa.com/t/length-property/297369 "2009-09-30T23:22:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)
#### Post date: [September 30, 2009, 11:22pm UTC](https://forum.kirupa.com/t/length-property/297369/1 "2009-09-30T23:22:04Z")

</div>

This is probably a stupid question needing a simple answer:

I am looking at “length” property in the Adobe AS3.0 language ref as I do not understand it.

It says:

\*\*An integer specifying the number of characters in the specified String object. \*\*(I understand this)

**Because all string indexes are zero-based, the index of the last character for any string x is x. length - 1.** (I do not understand the “- 1”. I understand that all string indexes are zero-based but I cant put this together with the last character for any string being -1 or whatever it is saying.

Do you understand this and can you help me understand it?

Thanks in advance.
