Menu

greatmask

2016. 5. 22. 00:20

안개핑 Flash study

 

 

 

 

    style-button 레이어 1 액션 on (release) { nextFrame(); stopDrag(); setProperty("/next", _x, -2000); } on (rollOver) { startDrag("/next", true); } on (rollOut, dragOut) { stopDrag(); setProperty("/next", _x, -2000); } style-button 레이어 2 액션 on (release) { nextFrame(); stopDrag(); setProperty("/next", _x, -2000); } on (rollOver) { startDrag("/next", true); } on (rollOut, dragOut) { stopDrag(); setProperty("/next", _x, -2000); } style-button 레이어 3 액션 on (release) { nextFrame(); stopDrag(); setProperty("/next", _x, -2000); } on (rollOver) { startDrag("/next", true); } on (rollOut, dragOut) { stopDrag(); setProperty("/next", _x, -2000); } style-button 레이어 4 액션 on (release) { gotoAndStop(1); stopDrag(); setProperty("/first", _x, -2000); } on (rollOver) { startDrag("/first", true); } on (rollOut, dragOut) { stopDrag(); setProperty("/first", _x, -2000); } ----------------------------------------------------- action 레이어 1 m = 0; b = 0; stop(); action 레이어 2 m = 0; b = 0; stop(); ---------------------------------------------------- botton 액션 레이어1 on (release) { if (Number(flag) == 1) { stop(); } else { m = b; b = 1; flag = 0; tellTarget ("/pic") { play(); } tellTarget ("/pic1") { play(); } /pic1/:fs = 0.25; /pic1/:bs = 2.5; } } 레이어2 on (release) { if (Number(flag) == 1) { stop(); } else { m = b; b = 2; flag = 0; tellTarget ("/pic") { play(); } tellTarget ("/pic1") { play(); } /pic1/:fs = 0.25; /pic1/:bs = 2.5; } } 레이어3 on (release) { if (Number(flag) == 1) { stop(); } else { m = b; b = 3; flag = 0; tellTarget ("/pic") { play(); } tellTarget ("/pic1") { play(); } /pic1/:fs = 0.25; /pic1/:bs = 2.5; } } 레이어4 on (release) { if (Number(flag) == 1) { stop(); } else { m = b; b = 4; flag = 0; tellTarget ("/pic") { play(); } tellTarget ("/pic1") { play(); } /pic1/:fs = 0.25; /pic1/:bs = 2.5; } } ------------------------------------------ m1 타임라인 액션.. action 레이어 1 stop(); action 레이어 2 py = getProperty("/pic", _y); if (Number(/:b)>Number(/:m)) { setProperty("", _y, Number(py)+Number(((/:b-2)*250-py)*0.3)); } else if (Number(/:b)action 레이어 3 gotoAndPlay(2); ------------------------------------------ pic 타임라인 action 레이어 1 stop(); fs = 0.2; bs = 3; action 레이어 2 py = getProperty("", _y); if (Number(/:b)>Number(/:m)) { setProperty("", _y, Number(py)+Number(((/:b-2)*250-py)*fs)); } else if (Number(/:b) action 레이어 3 gotoAndPlay(2);

 

'Flash study' 카테고리의 다른 글

lightsmany2  (0) 2016.05.22
lightsmany1  (0) 2016.05.22
colorwave  (0) 2016.05.22
shake-pic  (0) 2016.05.22
디지털 전광판  (0) 2016.05.22