자동슬라이드 문의요~~
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개
1초 --> 1000
3초 --> 3000
callback_function(){
//todo
}
게시글 목록
| 번호 | 제목 |
|---|---|
| 27980 | |
| 7164 | |
| 31729 | |
| 31726 | |
| 31725 | |
| 31720 | |
| 31711 | |
| 7159 | |
| 27974 | |
| 19734 | |
| 19730 | |
| 19729 |
PHP
[알고리즘] 배열 역순
|
| 27969 | |
| 7142 | |
| 19728 |
jQuery
remove()를 이용하여 엘리먼트 삭제하기
|
| 19725 | |
| 7130 | |
| 19722 |
jQuery
동일 엘리먼트 순번 알아내기
2
|
| 19719 | |
| 7124 | |
| 19718 | |
| 19717 | |
| 19716 |
jQuery
position() 메서드 객체에 대한 좌표값
|
| 19715 | |
| 7122 | |
| 30959 | |
| 19714 | |
| 31710 |
jQuery Mobile
jQuery Mobile 강좌 19. Select Menus
|
| 31709 |
jQuery Mobile
jQuery Mobile 강좌 18. Text Inputs
|
| 19713 | |
| 7117 | |
| 19712 | |
| 7111 | |
| 31708 |
jQuery Mobile
jQuery Mobile 강좌 17. Form Basic
|
| 31707 |
jQuery Mobile
jQuery Mobile 강좌 16. Filters
|
| 19710 | |
| 31706 |
jQuery Mobile
jQuery Mobile 강좌 15. List Content
|
| 31705 |
jQuery Mobile
jQuery Mobile 강좌 14. List Views
|
| 31704 |
jQuery Mobile
jQuery Mobile 강좌 13. Layout Grids
|
| 19709 | |
| 19707 | |
| 31703 |
jQuery Mobile
jQuery Mobile 강좌 12. Tables
|
| 19706 |
jQuery
class가 있는지 없는지 체크하기
|
| 31702 |
jQuery Mobile
jQuery Mobile 강좌 11. Collapsibles
|
| 19705 |
PHP
배열에서 중복 값 없애기
|
| 31701 |
jQuery Mobile
jQuery Mobile 강좌 10. Panels
|
| 19704 | |
| 31700 |
jQuery Mobile
jQuery Mobile 강좌 9. Navigation Bars
|
| 31699 |
jQuery Mobile
jQuery Mobile 강좌 8. Toolbars
|
| 31698 |
jQuery Mobile
jQuery Mobile 강좌 7. Popups
|
| 7107 | |
| 19703 |
JavaScript
str_pad 자릿수만큼 특정문자로 채우기
|
| 31697 |
jQuery Mobile
jQuery Mobile 강좌 6. Icons
|
| 31696 |
jQuery Mobile
jQuery Mobile 강좌 5. Buttons
|
| 19702 | |
| 19701 | |
| 31695 |
jQuery Mobile
jQuery Mobile 강좌 4. Transitions
|
| 27965 | |
| 31694 |
jQuery Mobile
jQuery Mobile 강좌 3. Pages
|
| 19700 | |
| 31693 |
jQuery Mobile
jQuery Mobile 강좌 2. Install
|
| 19699 | |
| 31692 |
jQuery Mobile
jQuery Mobile 강좌 1. Introduction
|
| 31691 |
jQuery Mobile
jQuery Mobile 강좌 0.home
|
| 19698 | |
| 19697 | |
| 19696 |
jQuery
마우스 오버 위치에 따라 툴팁 생성 및 자동 이동
|
| 19694 | |
| 19693 |
jQuery
제이쿼리 동적으로 생성된 객체에 이벤트 생성하기
|
| 19692 | |
| 19691 | |
| 19690 |
JavaScript
shuffle 배열섞기
|
| 19689 |
jQuery
제이쿼리 모음 사이트
|
| 19688 |
PHP
1원팁] IP 대역 비교
|
| 19687 | |
| 7105 | |
| 30955 | |
| 7100 | |
| 19681 |
PHP
input 쉽게 관리하기
5
|
| 7097 | |
| 19678 |
JavaScript
서버시간을 사용한 전자시계
2
|
| 7089 | |
| 7086 | |
| 7084 | |
| 7082 | |
| 19677 | |
| 30953 | |
| 7080 | |
| 7077 | |
| 7071 | |
| 7070 | |
| 7066 | |
| 19676 |
JavaScript
구글 웹사이트 번역기를 내 사이트에 달기
|
| 19674 | |
| 27961 | |
| 7063 | |
| 7061 | |
| 19669 | |
| 7060 | |
| 20842 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기