Date: Monday, 18 Jun 2007 18:35:57 -0500 (Central Daylight Time) From: Mark Jacobson To: Flash Animation Class Subject: Flash class code Here is the code which used the Text that was set to Input Text and given the instance name of upper_txt for its Name property. The .text property of upper_txt is referred to by using the full object name and property name: upper_txt.text This would refer to the 2 or the 6 or the 100 or the 1000 or the 365 or whatever value the user had INPUT into the upper_txt Text box. I changed the variable name from n100 to the more descriptive nBigger, since n is a number between 0 and 1, and we multiplied it by at least 2, typically. on (release) { n = Math.random(); nBigger = n * upper_txt.text; n_txt.text = n; n2_txt.text = nBigger; n3_txt.text = Math.floor(nBigger); n4_txt.text = Math.round(nBigger); } The above ActionScript code is for the release event of the upper_btn Button. Here is the code we used for the BUTTON named random_btn and its RELEASE event. on (release) { n = Math.random(); n100 = n*100; n_txt.text = n; n2_txt.text = n100; n3_txt.text = Math.floor(n100); n4_txt.text = Math.round(n100); } This material will not be on the quiz next Monday. --- Mark