Stage.align = "LT";
// 플래시를 상단 왼쪽으로 이동합니다.
Stage.scaleMode = "noscale";
// 플래시 무비 크기를 고정합니다.
numOfMenu = 4;
// 메뉴 개수
_global.current = 1;
myURL = "";
// 로드할 swf 파일이 존재하는 절대주소를 입력하세요.
//메인이 되는 화면의 스테이지 크기
var mainW = 922;
var mainH = 350;
//로드되는 화면의 스테이지 크기
var subW = 922;
var subH = 350;
moveView();
prevBtn.onRelease = function() {
if (current == 1) {
_global.current = numOfMenu;
} else {
_global.current--;
}
moveView();
};
nextBtn.onRelease = function() {
if (current == numOfMenu) {
_global.current = 1;
} else {
_global.current++;
}
moveView();
};
function moveView() {
emptyMC.loadMovie(myURL+"swf/category2"+current+".swf");
pointBox.point._x = (current-1)*20;
pointBox.point._y = 0;
}
var that = this;
function moveSet(){
that.prevBtn._y = Stage.height/2;
that.nextBtn._y = that.prevBtn._y;
that.nextBtn._x = Stage.width-that.prevBtn._x;
that.bg._width = Stage.width;
that.bg._height = Stage.height;
that.emptyMC._x = Stage.width/2 - subW/2;
that.emptyMC._y = Stage.height/2 - subH/2;
if(Stage.width < 600){
that.emptyMC._x = 0;
}
if(Stage.height < 400){
that.emptyMC._y = 100;
}
trace(that.emptyMC._width);
that.llii._y = that.emptyMC._y;
}
myListener = new Object();
Stage.addListener(myListener);
myListener.onResize = function() {
moveSet();
/*
_root.onEnterFrame = function() {
myText._x += (Stage.width/2-myText._width/2-myText._x)/4;
myText._y += (Stage.height/2-myText._height/2-myText._y)/4;
// 창크기가 조절이 되면 텍스트의 위치를 창 위치에 맞도록 수정합니다.
};
//*/
};
addListener.onResize();
//moveSet();
소스는 이렇구요! 외부파일을 연동해서 클릭시 다음swf파일을 load하는데 클릭안하고
일정시간후엔 자동으로 넘어가게하는 기능도 하고 싶은데요!!
고수님들에 가르침 부탁드립니다
댓글 1개
1초 --> 1000
3초 --> 3000
callback_function(){
//todo
}
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8130 | 9년 전 | 577 | ||
| 8129 |
|
9년 전 | 691 | |
| 8128 | 9년 전 | 548 | ||
| 8127 |
|
9년 전 | 593 | |
| 8126 | 9년 전 | 529 | ||
| 8125 | 9년 전 | 781 | ||
| 8124 |
|
9년 전 | 542 | |
| 8123 | 9년 전 | 527 | ||
| 8122 | 9년 전 | 457 | ||
| 8121 | 9년 전 | 566 | ||
| 8120 | 9년 전 | 483 | ||
| 8119 | 9년 전 | 572 | ||
| 8118 |
|
9년 전 | 650 | |
| 8117 |
|
9년 전 | 417 | |
| 8116 |
PASKRAN
|
9년 전 | 474 | |
| 8115 | 9년 전 | 472 | ||
| 8114 |
kiplayer
|
9년 전 | 611 | |
| 8113 | 9년 전 | 468 | ||
| 8112 |
|
9년 전 | 579 | |
| 8111 | 9년 전 | 419 | ||
| 8110 | 9년 전 | 458 | ||
| 8109 | 9년 전 | 389 | ||
| 8108 |
|
9년 전 | 568 | |
| 8107 |
|
9년 전 | 454 | |
| 8106 |
|
9년 전 | 457 | |
| 8105 | 9년 전 | 487 | ||
| 8104 |
|
9년 전 | 452 | |
| 8103 |
|
9년 전 | 453 | |
| 8102 |
|
9년 전 | 426 | |
| 8101 |
snshero
|
9년 전 | 812 | |
| 8100 | 9년 전 | 858 | ||
| 8099 | 9년 전 | 836 | ||
| 8098 | 9년 전 | 740 | ||
| 8097 | 9년 전 | 544 | ||
| 8096 | 9년 전 | 743 | ||
| 8095 | 9년 전 | 880 | ||
| 8094 | 9년 전 | 550 | ||
| 8093 | 9년 전 | 829 | ||
| 8092 | 9년 전 | 776 | ||
| 8091 | 9년 전 | 1163 | ||
| 8090 | 9년 전 | 789 | ||
| 8089 | 9년 전 | 1000 | ||
| 8088 | 9년 전 | 662 | ||
| 8087 | 9년 전 | 791 | ||
| 8086 | 9년 전 | 536 | ||
| 8085 | 9년 전 | 503 | ||
| 8084 | 9년 전 | 622 | ||
| 8083 | 9년 전 | 595 | ||
| 8082 | 9년 전 | 785 | ||
| 8081 | 9년 전 | 495 | ||
| 8080 | 9년 전 | 592 | ||
| 8079 | 9년 전 | 548 | ||
| 8078 | 9년 전 | 467 | ||
| 8077 | 9년 전 | 557 | ||
| 8076 | 9년 전 | 427 | ||
| 8075 | 9년 전 | 459 | ||
| 8074 | 9년 전 | 424 | ||
| 8073 | 9년 전 | 479 | ||
| 8072 | 9년 전 | 472 | ||
| 8071 |
o1o111
|
9년 전 | 922 | |
| 8070 | 9년 전 | 429 | ||
| 8069 | 9년 전 | 369 | ||
| 8068 | 9년 전 | 618 | ||
| 8067 | 9년 전 | 417 | ||
| 8066 | 9년 전 | 444 | ||
| 8065 | 9년 전 | 406 | ||
| 8064 | 9년 전 | 400 | ||
| 8063 | 9년 전 | 367 | ||
| 8062 | 9년 전 | 336 | ||
| 8061 | 9년 전 | 372 | ||
| 8060 | 9년 전 | 415 | ||
| 8059 | 9년 전 | 350 | ||
| 8058 | 9년 전 | 289 | ||
| 8057 | 9년 전 | 415 | ||
| 8056 | 9년 전 | 333 | ||
| 8055 | 9년 전 | 381 | ||
| 8054 | 9년 전 | 385 | ||
| 8053 | 9년 전 | 437 | ||
| 8052 | 9년 전 | 309 | ||
| 8051 | 9년 전 | 358 | ||
| 8050 | 9년 전 | 413 | ||
| 8049 | 9년 전 | 348 | ||
| 8048 | 9년 전 | 452 | ||
| 8047 | 9년 전 | 392 | ||
| 8046 | 9년 전 | 335 | ||
| 8045 | 9년 전 | 284 | ||
| 8044 | 9년 전 | 371 | ||
| 8043 | 9년 전 | 330 | ||
| 8042 | 9년 전 | 317 | ||
| 8041 | 9년 전 | 380 | ||
| 8040 | 9년 전 | 300 | ||
| 8039 | 9년 전 | 343 | ||
| 8038 | 9년 전 | 284 | ||
| 8037 | 9년 전 | 428 | ||
| 8036 | 9년 전 | 517 | ||
| 8035 | 9년 전 | 450 | ||
| 8034 | 9년 전 | 410 | ||
| 8033 | 9년 전 | 371 | ||
| 8032 | 9년 전 | 475 | ||
| 8031 | 9년 전 | 366 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기