Perhaps because array indexes are zero based?
--- In [email protected], grimmwerks <[EMAIL PROTECTED]> wrote: > > What's wrong with this: > > > var ev = new Object({sender: this.user.username, message: str}); > trace("got chat " + ev.message); > var h = this.application.so_Chat.getProperty("history"); > h.push(ev); > this.application.so_Chat.setProperty("history", h); > var q = this.application.so_Chat.getProperty("history"); > trace("q " + q.length); > trace(q[q.length].message); > trace("finished chat"); > } > > Ok - q.length traces out properly (ie as I add an item, it gets added > properly, the length increases by 1) -- but the history[q].message is > throwing an error. >

