0
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
function INIT_SUB_BUTTONS() {
mc_SHOP.btn_0.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(1)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(21)
}else mc_SHOP.gotoAndStop(41)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_1.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(2)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(22)
}else mc_SHOP.gotoAndStop(42)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_2.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(3)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(23)
}else mc_SHOP.gotoAndStop(43)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_3.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(4)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(24)
}else mc_SHOP.gotoAndStop(44)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_4.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(5)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(25)
}else mc_SHOP.gotoAndStop(45)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_5.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(6)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(26)
}else mc_SHOP.gotoAndStop(46)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_6.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(7)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(27)
}else mc_SHOP.gotoAndStop(47)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_7.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(8)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(28)
}else mc_SHOP.gotoAndStop(48)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_8.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(9)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(29)
}else mc_SHOP.gotoAndStop(49)
_root.mc_GAME.pre_BUILD()
}
}
mc_SHOP.btn_9.onPress = function() {
if ( mc_SHOP._BIG._currentframe == 1) {
if(mc_SHOP._currentframe<15){
mc_SHOP.gotoAndStop(10)
}else if(mc_SHOP._currentframe<35){
mc_SHOP.gotoAndStop(30)
}else mc_SHOP.gotoAndStop(50)
_root.mc_GAME.pre_BUILD()
}
Запостил:
kyzi007 ,
09.02.2012 (Updated 25.03.2018 )
http://demiart.ru/forum/journal.php?user=142469&comm=265503
Контроль версий в Жж?
Реквестирую юнит-тестирование и непрерывную интеграцию!