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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 32341 | |
| 32339 | |
| 32326 | |
| 32325 | |
| 32322 | |
| 32319 | |
| 32318 | |
| 32316 | |
| 32315 | |
| 32313 | |
| 32312 | |
| 32311 | |
| 32310 | |
| 32304 | |
| 32303 | |
| 32300 | |
| 32293 | |
| 32292 | |
| 32291 | |
| 32285 | |
| 32284 | |
| 32275 | |
| 32271 | |
| 32268 | |
| 32265 | |
| 32261 | |
| 32258 | |
| 32257 | |
| 32255 | |
| 32254 | |
| 32253 | |
| 32251 | |
| 32250 | |
| 32249 | |
| 32247 | |
| 32246 | |
| 32245 | |
| 32244 | |
| 32243 | |
| 32242 | |
| 32241 | |
| 32240 | |
| 32239 | |
| 32238 | |
| 32237 | |
| 32236 | |
| 32232 | |
| 32229 | |
| 32228 | |
| 32227 | |
| 32217 | |
| 32215 | |
| 32214 | |
| 32213 | |
| 32211 | |
| 32207 | |
| 32196 | |
| 32193 | |
| 32192 | |
| 32190 | |
| 32188 | |
| 32186 | |
| 32184 | |
| 32173 | |
| 32172 | |
| 32171 | |
| 32167 | |
| 32165 | |
| 32163 | |
| 32162 | |
| 32158 | |
| 32157 | |
| 32155 | |
| 32151 | |
| 32149 | |
| 32135 | |
| 32132 | |
| 32127 | |
| 32125 | |
| 32122 | |
| 32120 | |
| 32119 | |
| 32117 | |
| 32116 | |
| 32115 | |
| 32114 | |
| 32112 | |
| 32111 | |
| 32109 | |
| 32107 | |
| 32104 | |
| 32103 | |
| 32102 | |
| 32101 | |
| 32094 | |
| 32089 | |
| 20404 | |
| 31036 | |
| 8279 | |
| 8268 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기