자동슬라이드 문의요~~

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,659
15년 전 조회 1,782
15년 전 조회 1,543
15년 전 조회 2,040
15년 전 조회 1,770
15년 전 조회 2,059
15년 전 조회 1,780
15년 전 조회 1,660
15년 전 조회 1,750
15년 전 조회 4,221
15년 전 조회 1,568
15년 전 조회 2,748
15년 전 조회 4,200
15년 전 조회 2,163
15년 전 조회 2,085
15년 전 조회 2,805
15년 전 조회 1,978
15년 전 조회 1,989
15년 전 조회 2,196
15년 전 조회 1,668
15년 전 조회 2,516
15년 전 조회 2,044
15년 전 조회 1,645
15년 전 조회 1,793
15년 전 조회 1,578
15년 전 조회 2,050
15년 전 조회 1,446
15년 전 조회 2,632
15년 전 조회 1,642
15년 전 조회 1,446
15년 전 조회 1,902
15년 전 조회 1,922
15년 전 조회 1,827
15년 전 조회 1,990
15년 전 조회 1,649
15년 전 조회 1,610
15년 전 조회 2,226
15년 전 조회 1,754
15년 전 조회 1,399
15년 전 조회 1,551
15년 전 조회 3,653
15년 전 조회 1,744
15년 전 조회 1,414
15년 전 조회 1,494
15년 전 조회 1,283
15년 전 조회 1,329
15년 전 조회 1,826
15년 전 조회 1,520
15년 전 조회 1,348
15년 전 조회 1,646
15년 전 조회 1,185
15년 전 조회 1,382
15년 전 조회 1,556
15년 전 조회 1,424
15년 전 조회 1,333
15년 전 조회 1,329
15년 전 조회 1,485
15년 전 조회 1,534
15년 전 조회 1,683
15년 전 조회 1,513
15년 전 조회 1,044
15년 전 조회 1,183
15년 전 조회 1,540
15년 전 조회 1,631
15년 전 조회 1,048
15년 전 조회 2,437
15년 전 조회 1,863
15년 전 조회 1,407
15년 전 조회 1,392
15년 전 조회 1,561
15년 전 조회 2,279
15년 전 조회 1,552
15년 전 조회 1,489
15년 전 조회 1,519
15년 전 조회 1,449
15년 전 조회 1,507
15년 전 조회 1,234
15년 전 조회 1,824
15년 전 조회 1,373
15년 전 조회 1,194
15년 전 조회 3,178
15년 전 조회 935
15년 전 조회 1,415
15년 전 조회 1,398
15년 전 조회 1,339
15년 전 조회 1,216
15년 전 조회 1,523
15년 전 조회 1,584
15년 전 조회 1,233
15년 전 조회 1,631
15년 전 조회 1,264
15년 전 조회 1,512
15년 전 조회 1,648
15년 전 조회 1,398
15년 전 조회 1,201
15년 전 조회 1,399
15년 전 조회 1,514
15년 전 조회 1,214
15년 전 조회 1,200
15년 전 조회 1,587