import flash events MouseEvent import flash events Event var numb Numb

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
import flash.events.MouseEvent;
import flash.events.Event;
var numb:Number = numb1 + numb2 + numb3 + numb4 + numb5 + numb6 + numb7 + numb8 + numb9;
var numb1:Number = new Number;
var numb2:Number = new Number;
var numb3:Number = new Number;
var numb4:Number = new Number;
var numb5:Number = new Number;
var numb6:Number = new Number;
var numb7:Number = new Number;
var numb8:Number = new Number;
var numb9:Number = new Number;
numb = 0
s1.addEventListener(MouseEvent.CLICK, func1);
function func1 (e:MouseEvent){
numb1 += 100000000;
if (numb1 >= 900000000){
numb1 == 900000000;
removeChild(s1);
}
trace(numb);
}
s2.addEventListener(MouseEvent.CLICK, func2);
function func2 (e:MouseEvent){
numb2 += 10000000;
if (numb2 >= 90000000){
numb2 == 90000000;
removeChild(s2);
}
trace(numb);
}
s3.addEventListener(MouseEvent.CLICK, func3);
function func3 (e:MouseEvent){
numb3 += 1000000;
if (numb3 >= 9000000){
numb3 == 9000000;
removeChild(s3);
}
trace(numb);
}
s4.addEventListener(MouseEvent.CLICK, func4);
function func4 (e:MouseEvent){
numb4 += 100000;
if (numb4 >= 900000){
numb4 == 900000;
removeChild(s4);
}
trace(numb);
}
s5.addEventListener(MouseEvent.CLICK, func5);
function func5 (e:MouseEvent){
numb5 += 10000;
if (numb5 >= 90000){
numb5 == 90000;
removeChild(s5);
}
trace(numb);
}
s6.addEventListener(MouseEvent.CLICK, func6);
function func6 (e:MouseEvent){
numb6 += 1000;
if (numb6 >= 9000){
numb6 == 9000;
removeChild(s2);
}
trace(numb);
}
s7.addEventListener(MouseEvent.CLICK, func7);
function func7 (e:MouseEvent){
numb7 += 100;
if (numb7 >= 900){
numb7 == 900;
removeChild(s7);
}
trace(numb);
}
s8.addEventListener(MouseEvent.CLICK, func8);
function func8 (e:MouseEvent){
numb8 += 10;
if (numb8 >= 90){
numb8 == 90;
removeChild(s8);
}
trace(numb);
}
s9.addEventListener(MouseEvent.CLICK, func9);
function func9 (e:MouseEvent){
numb9 += 1;
if (numb9 >= 9){
numb9 == 9;
removeChild(s9);
}
trace(numb);
}