Random Stage Gallery
1. Properties- Movie Properties를 클릭 Background color=흰색,
Width=700, Height=525, Frame rate=30, SWF10, OK,
창에 맞추고
2. Outline의 Insert→Import Image, bg 삽입. Properties창에서
이름 bg로 W=1277 H=525 Transform에서 O=X 센타 X=350
Y=262.5로, 이름bg1로, bg하나 더삽입하고 W=1277 H=1020
O=X Center X=350 Y=262.5로 이름 bg로 맨아래로 내려주고
3. 사각그려 라인=실선 굵기=3 색=흰색 Fill color=none, W=700
H=525 O=X Center X=350 Y=262.5로하고 필터주고 복사하여 총
3개 만들고 가운데것 선택 X=1277 맨 위=X=1277 Y=1020으로,
3개를 무비클립으로 묶고 이름 Frame로
4. Outline→Insert→Import Image클릭 img01~36(무작위) 삽입,
모두선택, Properties에서 이름 그대로, Line=실선, 색=흰색,
굵기=0, 모두 선택 상태에 W=60 H=45 Transform의 O=X, 좌상,
X=350 Y=262.5,
5. Outline의 img01~36- 마우- Convert- Convert to Movie Clip,
Properties창에서 Stop playing at end 체크해제, 이름 아래서부터
photo1~36으로
[주의: photo하고 바로 0은 넣지말고 단단위 숫자 1로 적어주어야
실행이된다]
6. Stage의 무비 밖으로 상하좌우에 일렬로 각각 9개씩 개체를 나렬
위치한다.즉 photo1~9선택 O=X 좌상 X=0 Y=-45로 놓고 photo9
선택 X만 640으로 window→Align→Align to: All Selected선택,
Distribute: Horizontal Center정렬, photo10~18선택 O=X 좌상
X=700 Y=0로 놓고 photo18선택 Y만 480으로 window→Align→
Distribute Vertical Center, photo19~27선택 O=X 좌상 X=0
Y=525로 놓고 photo27선택 X만 640으로 window→Align→
Distribute Horizontal Center, photo28~36선택 O=X 좌상 X=-60
Y=0로 놓고 photo36선택 Y만 480으로 window→Align→
Distribute Vertical Center,
7. Outline: photo1~36모두선택 우클릭→Grouping→Group as
Movie Clip, 이름 photo로 O=X 센타 photo의(포인트점)만, 좌표
X/Y=0으로 마우스로 끌어다 놓고. frame 아래로 내려준다
8. Outline의Scene_1선택 Text 선택 Properties창에서 글씨체=
preciosa, 크기=36, 색=흰색, B,하고, Random Stage Gallery 쓰
고, Transform에서 O=X, 센타, X=350 Y=30으로 필터주고 무비클
립으로 묶고 이름 title로
9. Outline에서 각각의 개체에 아래 Script를 복사해다 적용한다.
엔타 넣으려면 묶지말고 Scene_1에 스톱줄것
- photo에
function viewPhoto(num) {
for (i=1; i<=36; i++) { //이미지갯수
_root.photo["photo"+i].showState = "off";
}
_root.photo["photo"+num].showState = on";
}
◉for (i=1; i<=36; i++)... 여기 36는 이미지 개수대로 써준다.
- photo - photo1~ 36까지 붙여넣음
onSelfEvent (load) {
showState = "off";
targetx = 10 + random(620);
targety = 10 + random(460);
speed = 5;
}
onSelfEvent (enterFrame) {
if (showState == "off") {
this._x = this._x + (targetx - this._x) / speed;
this._y = this._y + (targety - this._y) / speed;
this._width = this._width + (60 - this._width) / speed;
this._height = this._height + (45 - this._height) / speed;
} else {
this._x = this._x + (80 - this._x) / speed;
this._y = this._y + (60 - this._y) / speed;
this._width = this._width + (540 - this._width) / speed;
this._height = this._height +(405 - this._height) / speed;
}
}
onSelfEvent (release) {
if(showState == "off"){
_root.photo.viewPhoto(1); //자기번호 숫자로
}else{
_root.photo.viewPhoto(0);
}
targetx = 10 + random(620);
targety = 10 + random(460);
this.swapDepths(36);
}
※ this.swapDepths(36); 여기에 36도 이미지 총 갯수대로 써준다
_root.viewPhoto(1);...괄호안의 숫자는 해당 photo번호로 모두
수정함
** 이미지 추가하기
아웃창: 맨 아래 photo36 복사. 추가할 만큼 붙여넣고, 이름= 맨 끝
이름을 photo37로 하고
_root.viewPhoto(1);이 한줄 모두복사- 에디트- RePlace클릭, 위
칸에 붙여넣고, 아래 붙여넣고, 여기에서 숫자를 맨 마직막 수자를
써주고, 아래 Script에 체크, 우상에 Replace All 클릭 한 후 확인
클릭.(이렇게하면 일일이 바꿔주지않아도 수정이된다) 이상...
용량이 많아서 못올림
'스위시세상 > 스위시 고급' 카테고리의 다른 글
return zoom script gallery (0) | 2016.11.05 |
---|---|
Btn Gallery (0) | 2016.11.05 |
verticalSliding gridMask Gallery (0) | 2016.11.05 |
마름모 버튼과 동영상 10개모음 (0) | 2016.09.13 |
Sliding Pieces Gallery (0) | 2016.09.12 |