Help: "for loops"
http://imageshack.us/a/img201/4767/n9mj.png
http://imageshack.us/a/img443/1867/4797.png
In case you did not see my code in the picture:
var myFormat:TextFormat= new TextFormat();
body_txt.autoSize = TextFieldAutoSize.LEFT;
var lV:String;
var hT:String;
var lV = starting_txt.text
var hT = ending_txt.text
for (var lV:int = 1; lV <= 5; lV++)
{
trace(lV);
}
for (var hT:int = 2; hT <= 6; hT--)
{
trace(hT);
}
round_btn.addEventListener(MouseEvent.CLICK,onClick);
function onClick(event:MouseEvent):void{
addChild(body_txt);
body_txt.text = ""+ lV +""+ hT +""
}
I don't know what to enter in my variable, I've tried to name it different things. I often end up with errors such as "your variables conflict eachother", or something along those lines. I am supposed to display starting - ending numbers with no limit, which leads me to wonder how I am supposed to input a "starting number" considering there are unlimited numbers I could use as a starting number. Thank you for your help!
