error 1120 and 1180 when trying to display number on the stage.
Hello, I am trying to develop a program that will place random numbers on the stage and ask the user what is the difference, sum, product, etc. The program so far is as follows:
import flash.display.MovieClip;
import flash.text.TextField;
function randomNumber(low:Number, high:Number):Number
{
return Math.floor(Math.random() * (1+high-low)) + low;
}
var add1rand:int = randomNumber(0, 10);
radnum_txt:text = format(add1rand);
The numbers get generated but when I try to display them I get the following error:
Scene 1, Layer 'Layer 1', Frame 1, Line 10 1120: Access of undefined property text.
Scene 1, Layer 'Layer 1', Frame 1, Line 10 1180: Call to a possibly undefined method format.
I have been trying for two weeks and reviewed comments from the adobe community and google searches. My system uses an AMD Phenom 9950, Quad core processor with 8GB of ram and the hard drive is a convair 128 SSD. The operating system is Windows 7 with SP1, and the flash program is Flash professional CS6, ver. 12.0.2.529. Thank you.
