If you want to download and look at and play with the .fla file, click here: This DOWNLOADABLE version (day10.fla) is where we left off at the end of class. It does NOT have the needed ActionScript code. That is in the book, and on the day10.html and day10.swf web page, along with an explanation of some of the things we did to create day10.fla during our lab.
var t:TextField = new TextField(); addChild(t); t.visible = false;
var r_from_new : rectangleSymbol = new rectangleSymbol(); addChild( r_from_new ); would place the newly created instance of rectangleSymbol (a Movie Clip in our Library) on the stage. r_from_new.x = 100; r_from_new.y = 200; // and this would move it from (0, 0) to location (100, 200) on the stage.
function reset(evt:MouseEvent):void { r1.x = 0; r2.x = 0; r3.x = 0; r4.x = 0; t.visible = false; // Boolean property .visible of object t is set to false. t.visible = 0; t.visible = false; are the SAME in many languages, cause false is 0 and vice versa. }
var t:TextField = new TextField(); Yes, if you ask what was new today in class 10, I will say: new Who's on first? Who.