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
}
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 194 | ||
| 8229 | 9년 전 | 176 | ||
| 8228 |
커네드커네드
|
9년 전 | 215 | |
| 8227 | 9년 전 | 256 | ||
| 8226 | 9년 전 | 276 | ||
| 8225 | 9년 전 | 258 | ||
| 8224 | 9년 전 | 263 | ||
| 8223 | 9년 전 | 241 | ||
| 8222 |
|
9년 전 | 302 | |
| 8221 | 9년 전 | 199 | ||
| 8220 | 9년 전 | 243 | ||
| 8219 | 9년 전 | 218 | ||
| 8218 | 9년 전 | 261 | ||
| 8217 |
star3840
|
9년 전 | 220 | |
| 8216 | 9년 전 | 296 | ||
| 8215 | 9년 전 | 241 | ||
| 8214 | 9년 전 | 345 | ||
| 8213 | 9년 전 | 305 | ||
| 8212 | 9년 전 | 218 | ||
| 8211 | 9년 전 | 388 | ||
| 8210 | 9년 전 | 384 | ||
| 8209 | 9년 전 | 464 | ||
| 8208 | 9년 전 | 345 | ||
| 8207 | 9년 전 | 361 | ||
| 8206 |
|
9년 전 | 307 | |
| 8205 | 9년 전 | 280 | ||
| 8204 | 9년 전 | 270 | ||
| 8203 | 9년 전 | 348 | ||
| 8202 | 9년 전 | 256 | ||
| 8201 | 9년 전 | 299 | ||
| 8200 | 9년 전 | 302 | ||
| 8199 | 9년 전 | 327 | ||
| 8198 | 9년 전 | 292 | ||
| 8197 | 9년 전 | 285 | ||
| 8196 | 9년 전 | 706 | ||
| 8195 | 9년 전 | 292 | ||
| 8194 | 9년 전 | 398 | ||
| 8193 | 9년 전 | 316 | ||
| 8192 | 9년 전 | 315 | ||
| 8191 | 9년 전 | 279 | ||
| 8190 | 9년 전 | 258 | ||
| 8189 | 9년 전 | 321 | ||
| 8188 | 9년 전 | 254 | ||
| 8187 | 9년 전 | 271 | ||
| 8186 | 9년 전 | 270 | ||
| 8185 | 9년 전 | 438 | ||
| 8184 | 9년 전 | 221 | ||
| 8183 | 9년 전 | 428 | ||
| 8182 | 9년 전 | 299 | ||
| 8181 | 9년 전 | 250 | ||
| 8180 | 9년 전 | 826 | ||
| 8179 | 9년 전 | 605 | ||
| 8178 | 9년 전 | 463 | ||
| 8177 |
kiplayer
|
9년 전 | 460 | |
| 8176 | 9년 전 | 497 | ||
| 8175 | 9년 전 | 378 | ||
| 8174 | 9년 전 | 373 | ||
| 8173 | 9년 전 | 459 | ||
| 8172 | 9년 전 | 342 | ||
| 8171 | 9년 전 | 305 | ||
| 8170 | 9년 전 | 421 | ||
| 8169 |
커네드커네드
|
9년 전 | 370 | |
| 8168 | 9년 전 | 458 | ||
| 8167 | 9년 전 | 447 | ||
| 8166 | 9년 전 | 348 | ||
| 8165 | 9년 전 | 286 | ||
| 8164 | 9년 전 | 417 | ||
| 8163 | 9년 전 | 422 | ||
| 8162 | 9년 전 | 404 | ||
| 8161 | 9년 전 | 423 | ||
| 8160 |
|
9년 전 | 642 | |
| 8159 | 9년 전 | 587 | ||
| 8158 | 9년 전 | 384 | ||
| 8157 | 9년 전 | 507 | ||
| 8156 | 9년 전 | 379 | ||
| 8155 | 9년 전 | 391 | ||
| 8154 |
00년생용띠
|
9년 전 | 710 | |
| 8153 | 9년 전 | 351 | ||
| 8152 |
|
9년 전 | 526 | |
| 8151 | 9년 전 | 520 | ||
| 8150 | 9년 전 | 639 | ||
| 8149 |
Jangfolk
|
9년 전 | 498 | |
| 8148 | 9년 전 | 311 | ||
| 8147 | 9년 전 | 496 | ||
| 8146 | 9년 전 | 579 | ||
| 8145 | 9년 전 | 537 | ||
| 8144 | 9년 전 | 503 | ||
| 8143 | 9년 전 | 330 | ||
| 8142 | 9년 전 | 549 | ||
| 8141 | 9년 전 | 490 | ||
| 8140 | 9년 전 | 1063 | ||
| 8139 | 9년 전 | 397 | ||
| 8138 |
전갈자리남자
|
9년 전 | 509 | |
| 8137 | 9년 전 | 548 | ||
| 8136 | 9년 전 | 873 | ||
| 8135 |
|
9년 전 | 924 | |
| 8134 |
PlayPixel
|
9년 전 | 665 | |
| 8133 |
|
9년 전 | 563 | |
| 8132 | 9년 전 | 595 | ||
| 8131 | 9년 전 | 954 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기