⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asflippage.as

📁 很方便实用的一个相册源码
💻 AS
📖 第 1 页 / 共 5 页
字号:
                    this._visible = true;
                    this._alpha = this._alpha + 20;
                    if (this._alpha >= 100) {
                        delete this.onEnterFrame;
                    }
                };
            }
            if (!shadow_bottom2._visible) {
                shadow_bottom2._visible = true;
                shadow_bottom2._alpha = 0;
                shadow_bottom2.onEnterFrame = function () {
                    this._visible = true;
                    this._alpha = this._alpha + 20;
                    if (this._alpha >= 100) {
                        delete this.onEnterFrame;
                    }
                };
            }
            if (on_page_v == 1) {
                shadow_bottom2._visible = false;
                delete shadow_bottom2.onEnterFrame;
            } else if (on_page_v == all_page_v) {
                shadow_bottom1._visible = false;
                delete shadow_bottom1.onEnterFrame;
            }
            if (!page_side1_mc._visible) {
                page_side1_mc._visible = true;
                page_side1_mc._alpha = 0;
                page_side1_mc.onEnterFrame = function () {
                    this._visible = true;
                    this._alpha = this._alpha + 20;
                    if (this._alpha >= 100) {
                        delete this.onEnterFrame;
                    }
                };
            }
            if (!page_side2_mc._visible) {
                page_side2_mc._visible = true;
                page_side2_mc._alpha = 0;
                page_side2_mc.onEnterFrame = function () {
                    this._visible = true;
                    this._alpha = this._alpha + 20;
                    if (this._alpha >= 100) {
                        delete this.onEnterFrame;
                    }
                };
            }
            if ((on_page_v == 1) or (on_page_v == all_page_v)) {
                page_side2_mc._visible = false;
                delete page_side2_mc.onEnterFrame;
                page_side1_mc._visible = false;
                delete page_side1_mc.onEnterFrame;
            }
            drawMask3_fun();
            on_mc._visible = true;
            flip_mc._visible = false;
            next_mc._visible = false;
            next_triangle._visible = false;
            triangle._visible = false;
            this.removeMovieClip();
            this.removeMovieClip();
            this.removeMovieClip();
            this.removeMovieClip();
            set_bg_sound_fun();
            set_page_title_fun();
            set_end_shadow_fun();
            if (if_auto_filp != "NO") {
                auto_filp_fun();
            }
            if (CueHitArea) {
                if (CueHitArea_ing) {
                    CueHitArea_ing = false;
                    OnFinishCueHitAreaing();
                } else {
                    OnFinishFlip();
                 }
                onEnterFrame = set_CueHitArea_fun;
            } else {
                OnFinishFlip();
             }
        }
        function go_next_page_fun() {
            if ((on_page_v < all_page_v) and flip_end) {
                OnStartFlip();
                clearInterval(stop_time_si);
                flip_ing = false;
                flip_end = false;
                drag_area = 1;
                flip_win = true;
                this.attachMovie(book_mc, "flip_mc", 300);
                this.attachMovie(book_mc, "next_mc", 200);
                next_mc._x = pcx;
                next_mc._y = pcy;
                next_mc.gotoAndStop(on_page_v + 1);
                flip_mc.gotoAndStop(on_page_v + 1);
                on_mc._visible = true;
                point_xy_arry[0].x = pfx - StartFilpInclineX;
                point_xy_arry[0].y = pfy - StartFilpInclineY;
                flip_ing_fun();
                aim_x = pbx;
                aim_y = pby;
                filp_sound_fun();
                onEnterFrame = function () {
                    this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
                    this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
                    this.flip_ing_fun();
                    if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
                        this.show_next_page_fun();
                    }
                };
            }
        }
        function go_prev_page_fun() {
            if ((on_page_v > 1) and flip_end) {
                OnStartFlip();
                clearInterval(stop_time_si);
                flip_ing = false;
                flip_end = false;
                drag_area = 2;
                flip_win = true;
                this.attachMovie(book_mc, "flip_mc", 300);
                this.attachMovie(book_mc, "next_mc", 200);
                next_mc._x = pcx;
                next_mc._y = pcy;
                next_mc.gotoAndStop(on_page_v - 1);
                flip_mc.gotoAndStop(on_page_v - 1);
                on_mc._visible = true;
                point_xy_arry[0].x = pbx + StartFilpInclineX;
                point_xy_arry[0].y = pby - StartFilpInclineY;
                flip_ing_fun();
                aim_x = pfx;
                aim_y = pfy;
                filp_sound_fun();
                onEnterFrame = function () {
                    this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
                    this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
                    this.flip_ing_fun();
                    if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
                        this.show_prev_page_fun();
                    }
                };
            }
        }
        function go_to_page_fun(v) {
            if ((((v >= 1) and (v <= all_page_v)) and (v != on_page_v)) and flip_end) {
                OnStartFlip();
                clearInterval(stop_time_si);
                go_to_page_v = v;
                flip_ing = false;
                flip_end = false;
                if (v > on_page_v) {
                    drag_area = 1;
                    point_xy_arry[0].x = pfx - StartFilpInclineX;
                    point_xy_arry[0].y = pfy - StartFilpInclineY;
                    aim_x = pbx;
                    aim_y = pby;
                } else {
                    drag_area = 2;
                    point_xy_arry[0].x = pbx + StartFilpInclineX;
                    point_xy_arry[0].y = pby - StartFilpInclineY;
                    aim_x = pfx;
                    aim_y = pfy;
                 }
                if (v == 1) {
                    shadow_bottom2._visible = false;
                } else if (v == all_page_v) {
                    shadow_bottom1._visible = false;
                }
                if (v <= 1) {
                    page_side2_mc._visible = false;
                } else if (v >= all_page_v) {
                    page_side1_mc._visible = false;
                }
                flip_win = true;
                this.attachMovie(book_mc, "flip_mc", 300);
                this.attachMovie(book_mc, "next_mc", 200);
                next_mc._x = pcx;
                next_mc._y = pcy;
                next_mc.gotoAndStop(v);
                flip_mc.gotoAndStop(v);
                on_mc._visible = true;
                flip_ing_fun();
                filp_sound_fun();
                onEnterFrame = function () {
                    this.point_xy_arry[0].x = this.point_xy_arry[0].x + ((this.aim_x - this.point_xy_arry[0].x) / (1 + this.flip_speed));
                    this.point_xy_arry[0].y = this.point_xy_arry[0].y + ((this.aim_y - this.point_xy_arry[0].y) / (1 + this.flip_speed));
                    this.flip_ing_fun();
                    if (Math.sqrt(Math.pow(this.point_xy_arry[0].x - this.aim_x, 2) + Math.pow(this.point_xy_arry[0].y - this.aim_y, 2)) <= this.end_filp_distance_v) {
                        this.show_the_page_fun(this.go_to_page_v);
                    }
                };
            }
        }
        function set_bg_sound_fun() {
            if ((bg_sound_v != bg_sound_array[on_page_v - 1]) or pauseBgSound_b) {
                pauseBgSound_b = false;
                bg_sound_v = bg_sound_array[on_page_v - 1];
                bg_sound.stop();
                bg_sound = new Sound (stage_mc);
                var _local2 = String (bg_sound_v);
                if (_local2 != "undefined") {
                    if (_local2.length < 5) {
                        bg_sound.attachSound("bg_sound" + bg_sound_v);
                        bg_sound.setVolume(bg_s_volume);
                        bg_sound.start(0, 1);
                    } else {
                        bg_sound.loadSound(bg_sound_v, true);
                        bg_sound.onLoad = function (success) {
                            if (success) {
                                this.bg_sound.start(0, 1);
                            }
                        };
                     }
                }
                bg_sound.onSoundComplete = function () {
                    this.start(0, 1);
                };
            }
        }
        function setBgSoundVolumeFun(v) {
            bg_sound.setVolume(v);
        }
        function pauseBgSoundFun() {
            pauseBgSound_b = true;
            bg_sound_position = bg_sound.position / 1000;
            bg_sound.stop();
        }
        function continueBgSoundFun() {
            pauseBgSound_b = false;
            bg_sound.stop();
            bg_sound.start(bg_sound_position, 1);
            bg_sound.onSoundComplete = function () {
                this.start(0, 1);
            };
        }
        function set_shadow_fun() {
            if (shadow_b) {
                on_triangle.duplicateMovieClip("mask3_shadow", 492);
                next_triangle.duplicateMovieClip("mask2_shadow", 502);
                triangle.duplicateMovieClip("mask1_shadow", 512);
                if ((drag_area == 1) 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -