Step-1: create an input box and in the properties panel give the instance
name for the input box as “n1”
Step-2: Give the label for the input box(text) as “enter any number”.
Step-3: create a button with the text “enter” on it.
Step-4: Select window-components we will get a list of components.
drag and drop the text area component and give the instance
name as “a” in the properties panel.
Step-5: Select the button and open the action panel and write the
following code in the script pane.
on(release)
{
var i:Number;
var n:Number;
var r:Number;
n=Number(n1.text);
for(i=0;i<=10;i++)
{
r=n*i;
a.text+=n+”*”+i+”=”+r+newline;
}
}
Step-6: press ctrl+enter to test the movie.