• Register
0 votes
77 views

Problem  :

I want to develop the couple of basic games on flash that consist in random numbers but I am facing following error every time I execute my scene:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at capacitacion_fla::MainTimeline/frame1()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at capacitacion_fla::MainTimeline/frame1()
at flash.display::MovieClip/gotoAndStop()
at capacitacion_fla::MainTimeline/fl_ClickToGoToAndStopAtFrame()

I am new to flash and trying to learn flash and as3 and I will be more than happy if someone help me in finding the solution on my issue.

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

Error No 1009 wants to tell you that it is unable to find either a button, Movie Clip, Text field etc. One easy solution for your error is to make sure that your buttons have the instance names. I think that you are using CS6 or the older version of Flash. In that case please select a button, like the mynumerico_btn when you are on the particular stage. Then you  can go to the properties panel and in your instance input field put the required name of mynumerico_btn.

You must follow this for all of your buttons. Finally, you need to declare those buttons. As follows :

var mynumerico_btn:SimpleNumericButton;

That must solve the error. Just as an addition please make sure your button must be enabled by adding mynumerico_btn.enabled = true; before the event listener.

9 7 4
38,600 points

Related questions

0 votes
1 answer 4 views
4 views
Problem: Whi I get error: Notice: Trying to get property of non-object in **\htdocs\index.php on line 9 + var_dump() returns: NULL
asked Mar 17 ummesalma 22.6k points
0 votes
1 answer 3 views
3 views
Problem: How can i unlock this toolbox item? Is it possible to use Shockwave Flash Object on the Surface 2.0?
asked 4 days ago Sana8989 8.5k points
0 votes
3 answers 726 views
726 views
Problem : Why is the below error occurring? An object reference is required for the nonstatic field, method, or property 'WindowsApplication1.Form1.setTextboxText(int)
asked Jan 18, 2020 jwilliam 3.9k points
0 votes
1 answer 4 views
4 views
Problem: My Adobe Flash media server was successfully installed in my windows . but whenever i write ipconfig in command it shows "ipconfig is not recognized as internal or external command"
asked Apr 4 Sana8989 8.5k points
0 votes
1 answer 12 views
1 vote
1 answer 89 views
89 views
Problem: When I tried to install Rails on my Surface Pro 3 and run into this error after trying to view a page: # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.8' # Use sqlite3 as the database for Active Record gem ' ... twitter-bootstrap-rails.git' gem 'font-awesome-rails' gem 'simple_form' gem 'devise' The file is my gemfile. Please help me to solve this thing.
asked Jun 9, 2020 samhaz 5k points
0 votes
1 answer 2 views
2 views
Problem: While trying to debug I am get the 'length' null error with this line. It is written just like the book instructed, so I don't understand why it is giving me the error? Thanks, =)
asked 4 days ago Sana8989 8.5k points
0 votes
1 answer 3 views
3 views
Problem: I am in difficulty continuing my learning (Cannot read property 'parentnode' of null).
asked Mar 31 zayed1 24.7k points
1 vote
1 answer 6 views
6 views
Problem : I want to save images in Azure storage but I get the error message: TypeError: Cannot read property '1' of nullI can not understand to solve, Can anyone help?
asked Mar 21 Shovo210 13.2k points