자동슬라이드 문의요~~

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하는데 클릭안하고
일정시간후엔 자동으로 넘어가게하는 기능도 하고 싶은데요!!

고수님들에 가르침 부탁드립니다

[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]
|

댓글 1개

settimeout("callback_function()",3000 ) 함수를 이용 하심 될 걸로 보입니다.
1초 --> 1000
3초 --> 3000

callback_function(){
//todo
}
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
15년 전 조회 1,156
15년 전 조회 1,275
15년 전 조회 1,006
15년 전 조회 1,519
15년 전 조회 1,231
15년 전 조회 1,554
15년 전 조회 1,247
15년 전 조회 1,160
15년 전 조회 1,240
15년 전 조회 3,710
15년 전 조회 1,049
15년 전 조회 2,231
15년 전 조회 3,702
15년 전 조회 1,652
15년 전 조회 1,584
15년 전 조회 2,291
15년 전 조회 1,468
15년 전 조회 1,470
15년 전 조회 1,694
15년 전 조회 1,178
15년 전 조회 2,015
15년 전 조회 1,534
15년 전 조회 1,146
15년 전 조회 1,294
15년 전 조회 1,079
15년 전 조회 1,547
15년 전 조회 927
15년 전 조회 2,136
15년 전 조회 1,135
15년 전 조회 974
15년 전 조회 1,434
15년 전 조회 1,426
15년 전 조회 1,368
15년 전 조회 1,522
15년 전 조회 1,176
15년 전 조회 1,128
15년 전 조회 1,752
15년 전 조회 1,287
15년 전 조회 931
15년 전 조회 1,111
15년 전 조회 3,183
15년 전 조회 1,246
15년 전 조회 941
15년 전 조회 1,020
15년 전 조회 812
15년 전 조회 872
15년 전 조회 1,355
15년 전 조회 1,058
15년 전 조회 903
15년 전 조회 1,162
15년 전 조회 748
15년 전 조회 930
15년 전 조회 1,105
15년 전 조회 973
15년 전 조회 877
15년 전 조회 935
15년 전 조회 1,099
15년 전 조회 1,121
15년 전 조회 1,290
15년 전 조회 1,122
15년 전 조회 662
15년 전 조회 799
15년 전 조회 1,146
15년 전 조회 1,227
15년 전 조회 660
15년 전 조회 2,046
15년 전 조회 1,470
15년 전 조회 1,040
15년 전 조회 1,002
15년 전 조회 1,154
15년 전 조회 1,908
15년 전 조회 1,178
15년 전 조회 1,114
15년 전 조회 1,147
15년 전 조회 1,070
15년 전 조회 1,131
15년 전 조회 872
15년 전 조회 1,458
15년 전 조회 1,006
15년 전 조회 849
15년 전 조회 2,817
15년 전 조회 610
15년 전 조회 1,063
15년 전 조회 1,042
15년 전 조회 1,007
15년 전 조회 858
15년 전 조회 1,177
15년 전 조회 1,236
15년 전 조회 888
15년 전 조회 1,289
15년 전 조회 921
15년 전 조회 1,172
15년 전 조회 1,295
15년 전 조회 1,042
15년 전 조회 851
15년 전 조회 1,034
15년 전 조회 1,155
15년 전 조회 865
15년 전 조회 849
15년 전 조회 1,224
🐛 버그신고