Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Action Script 3

New Here ,
Apr 10, 2014 Apr 10, 2014

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:

code.PNG

TOPICS
ActionScript
244
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2014 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 10, 2014 Apr 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 10, 2014 Apr 10, 2014
LATEST

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";

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines