자동슬라이드 문의요~~

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,161
15년 전 조회 1,281
15년 전 조회 1,011
15년 전 조회 1,521
15년 전 조회 1,235
15년 전 조회 1,559
15년 전 조회 1,255
15년 전 조회 1,163
15년 전 조회 1,244
15년 전 조회 3,713
15년 전 조회 1,052
15년 전 조회 2,234
15년 전 조회 3,705
15년 전 조회 1,655
15년 전 조회 1,589
15년 전 조회 2,295
15년 전 조회 1,474
15년 전 조회 1,474
15년 전 조회 1,698
15년 전 조회 1,183
15년 전 조회 2,020
15년 전 조회 1,538
15년 전 조회 1,150
15년 전 조회 1,298
15년 전 조회 1,083
15년 전 조회 1,548
15년 전 조회 934
15년 전 조회 2,143
15년 전 조회 1,140
15년 전 조회 979
15년 전 조회 1,439
15년 전 조회 1,430
15년 전 조회 1,371
15년 전 조회 1,526
15년 전 조회 1,181
15년 전 조회 1,133
15년 전 조회 1,757
15년 전 조회 1,291
15년 전 조회 932
15년 전 조회 1,114
15년 전 조회 3,188
15년 전 조회 1,251
15년 전 조회 944
15년 전 조회 1,026
15년 전 조회 816
15년 전 조회 876
15년 전 조회 1,359
15년 전 조회 1,062
15년 전 조회 905
15년 전 조회 1,164
15년 전 조회 750
15년 전 조회 933
15년 전 조회 1,109
15년 전 조회 978
15년 전 조회 880
15년 전 조회 937
15년 전 조회 1,103
15년 전 조회 1,124
15년 전 조회 1,294
15년 전 조회 1,125
15년 전 조회 666
15년 전 조회 803
15년 전 조회 1,148
15년 전 조회 1,231
15년 전 조회 663
15년 전 조회 2,048
15년 전 조회 1,470
15년 전 조회 1,044
15년 전 조회 1,007
15년 전 조회 1,158
15년 전 조회 1,910
15년 전 조회 1,180
15년 전 조회 1,116
15년 전 조회 1,150
15년 전 조회 1,072
15년 전 조회 1,135
15년 전 조회 874
15년 전 조회 1,461
15년 전 조회 1,009
15년 전 조회 852
15년 전 조회 2,822
15년 전 조회 612
15년 전 조회 1,065
15년 전 조회 1,044
15년 전 조회 1,009
15년 전 조회 861
15년 전 조회 1,182
15년 전 조회 1,238
15년 전 조회 891
15년 전 조회 1,292
15년 전 조회 924
15년 전 조회 1,176
15년 전 조회 1,298
15년 전 조회 1,045
15년 전 조회 855
15년 전 조회 1,037
15년 전 조회 1,159
15년 전 조회 866
15년 전 조회 852
15년 전 조회 1,225
🐛 버그신고