Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7715897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:30:09+00:00 2026-06-01T02:30:09+00:00

This is quite frustrating. I am simply trying to create a dynamic text and

  • 0

This is quite frustrating. I am simply trying to create a dynamic text and put some text into it on runtime.

I get this error though

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at MethodInfo-1()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

I have a text object named textLabel, which is inside a movieclip named MC_state.
I get it because I use:

MC_state.textLabel.text = "asdasd";

And I wish I knew what the problem was. I have other objects set up quite the same way which don’t give me that problem. I just don’t know how debug that.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:30:10+00:00Added an answer on June 1, 2026 at 2:30 am

    The error is telling you that there is no object somewhere along MC_state.textLabel.text, so either flash cannot find MC_state, or textLabelinside MC_state or (unlikely) text inside MC_state.textLabel.

    If I may venture a guess though, I think you’re seeing this because this happened:

    you have somewhere a movieclip called MC_state that has more than one frames. You tied to do gotoAndStop or gotoAndPlay to a frame that has the textfield called textLabel and that’s the text you’re trying to change.

    The problem, and it comes up often for people transitioning from AS2, is that when you execute the gotoAndPlay/gotoAndStop function, the movieClip doesn’t update right away, this happens iin the render phase. The code after that function however executes right away, so the movieclip is still at the old frame.

    there are two ways you can handle it

    • set up a event handler that updates the render event, and change the text then. You can hurry the stage rendering by running stage.invalidate example

    • the other (better) option is to have the text in all the frames, and have it hidden or invisible, that way you can access it at any time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I run into this quite often where a new page is supposedly tested and
So I've literally been stuck on this for hours and it's quite frustrating. I
I've been trying to figure out this particular object for quite a while and
this is quite frustrating, I saw many questions around this topic, but strangely enough
This is frustrating and I simply can't find the right answer on how to
This may be a dumb question, I realize, but this is quite frustrating for
I have been pondering writing this question for quite some time. I work for
I am intentionally leaving this quite vague at first. I'm looking for discussion and
I've seen this quite a few times while using Office Interop classes this.CustomXMLParts.Add(MyResources.Data, new
I have this quite popular problem, but have failed to find a solution that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.