Skip to main content
December 31, 2009
Question

How to Show new Form when play button click?

  • December 31, 2009
  • 1 reply
  • 367 views

Hai all,

i have 3 file. the first is quiz.as that contain two button. play and invite friend.quiz.fla. and quizapp.ass. when i click play button i want to show the quiz that store in quizapp.as. int the quiz.as i have the mouse event that call quiapp.but when i run i got an error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at QuizApp/createButtons()
    at QuizApp()
    at Quiz/playQuiz()

in createButtons(), i create three button next,prev and finish.

whereas, in my quiz.fla library i have drag the button into my library but the error show nuul object reference for the button that i have created. can you help me to give some advice or sample code??

This topic has been closed for replies.

1 reply

December 31, 2009

Can you please elaborate more as the problem is not quite clear.

However if you have the button instances placed on the stage already check if you have tick the "automatically declare stage instances" in your publish settings.

Attach your code in a zip on this forum may be we can solve it then.

P.S. :- Also you can access these buttons available in stage only in the document class.