륜

자동슬라이드 문의요~~

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
}
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-03-02 조회 3,261
16-01-19 조회 2,548
15-12-23 조회 2,977
15-12-08 조회 3,705
14-10-30 조회 5,750
14-06-06 조회 5,574
12-08-30 조회 3,932
12-08-20 조회 3,851
12-07-15 조회 5,179
12-07-13 조회 3,644
12-07-06 조회 3,877
12-06-27 조회 3,385
12-06-23 조회 3,601
12-05-03 조회 5,206
12-04-20 조회 4,139
12-03-29 조회 4,656
12-03-22 조회 4,762
12-03-22 조회 3,534
12-03-21 조회 3,306
12-03-11 조회 3,728
12-03-06 조회 4,283
12-02-22 조회 4,553
12-02-17 조회 3,353
12-02-17 조회 6,208
12-02-14 조회 6,155
12-02-06 조회 4,280
12-01-18 조회 3,233
12-01-06 조회 3,458
11-12-30 조회 3,936
11-12-30 조회 7,080
11-12-21 조회 3,301
11-12-21 조회 4,267
11-12-16 조회 3,297
11-12-15 조회 3,331
11-12-15 조회 3,445
11-12-15 조회 4,248
11-12-09 조회 3,249
11-12-09 조회 3,322
11-12-07 조회 2,885
11-12-07 조회 3,975
11-12-05 조회 4,423
11-12-02 조회 3,882
11-12-01 조회 2,753
11-12-01 조회 2,803
11-12-01 조회 2,784