class= " lineNumbers "
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
|
class=
rbg " class= " id= " codeSnippet786760 var: Object=user.group;
var UserClicked: Шнур = "";
ldr var: Затяжелитель = новый затяжелитель ();
ldr.load (новое URLRequest («http://www.sample.com/design1.gif "));
var mc: MovieClip = новое MovieClip ();
mc.addChild (ldr);
ldr.x = 300;
ldr.y = 100;
this.addChild (ldr);
user.group.addEventListener (MouseEvent.CLICK, checkAnswer);
checkAnswer функции (evt: MouseEvent): свободное пространство {
UserClicked = шнур (rbg.selectedData);
след (UserClicked);
ldr.load (новое URLRequest («http://www.sample.com/design2.gif "));
}
|