Why null object reference ?
I am trying to recieve a variable from one of my classes called secondss to the timeline.
I did this using MovieClip(root).secondss = secondss; in the class.
I wanted it for giving the user a different reward when finsihing the game in different amount of times.
I also created a var "TotalScore" which equals gameScore + reward.
And now when I run it and finish the game I see that there's a 0 in the textfield of TotalScore and I get this output error repeatedly :
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at EasyGame/clockTime()
at EasyGame/showTime()
Anybody can clarify what's the problem ?