Skip to main content
Participant
April 10, 2014
Question

Action Script 3

  • April 10, 2014
  • 2 replies
  • 264 views

Hello, I'm completely new to Action Script 3 and I keep getting the same error, I want to print the countdown clock figures to screen but I keep gettin g the same error, which is: access to undefind

property txt_f1_SecoundsToCountDown.

This is my code:

This topic has been closed for replies.

2 replies

lmb26gAuthor
Participant
April 10, 2014

Thank you Ned,

I'm trying to print to screen the contdown sequence rather than to the output box, as you can tell it's only my second day working with AS3.

Ned Murphy
Legend
April 10, 2014

You display text in a textfield.  Create a textfield and then assign the countdown value to its text property as a String...

    someTextField.text =  String(f1_SecoundsToCountDown) + " seconds";

Ned Murphy
Legend
April 10, 2014

At about the 11th line of the code you show is a line that makes little sense...

     txt_f1_SecoundsToCountDown.Number "Seconds";

If you comment out that line the error should go away.  If you correct that line then it might do whatever it's intention is.  If you don't know how to correct that line, explain what it is trying to do to what object and it should be possible to help you resolve it.