PDA

View Full Version : [AS3] combo box etc


ryanstruk
10-27-2009, 12:52 PM
I'm struggling to work out what is wrong with this program. its a guest book I downloaded and now modifying for use as a blog.

Here is the error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at script::Main/popcb()

it's coming from a function in this file:
http://pastebin.com/d2744517f

I am simply trying to run a trace on 'combotitles'.

Strange thing is that it works fine when I trace it on the other file:

http://pastebin.com/m6c2b026a

Also decrec seems to work fine and prevents under running 0, however increc displays this error when it hits the end of the array:

TypeError: Error #1010: A term is undefined and has no properties.
at script::Main/displayText()
at script::Main/increc()

Is there something wrong with my boolean operator of that function?

would greatly appreciate any suggestions,

Ryan