Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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";
Find more inspiration, events, and resources on the new Adobe Community
Explore Now