永恒的春天 韩磊歌词:网页电子像册的编制方法,需要制作自己的电子像册放到Q空间或者其他地方的人注意了|电脑技术-...

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 02:24:59
倒序阅读   只看楼主   小中大   楼主   ┊  资料  ┊   主题  ┊   发消息  ┊   引用   ┊   举报此帖 更多操作

网页电子像册的编制方法,需要制作自己的电子像册放到Q空间或者其他地方的人注意了



源代码在下面,只要在源代码里改图片就OK了










使用FLASH PROFESSIONAL8.0制作的.,具体步骤有空弄上来吧
以下是全部代码----------------------------------------

stop();
fscommand("fullscreen", "true");
sg_mc._visible = false;
zr_mc.stop();
bj_mc._x = 0;
bj_mc._y = -20;
p = 0+"%";
an1_btn._visible = false;
jj = 0;
aaa_text._visible = false;
mm.onEnterFrame = function() {
    jj++;
    zheng = _root.getBytesLoaded();
    zong = _root.getBytesTotal();
    kai = zheng/zong*100;
    p = Math.round(kai)+"%";
    h = Math.round(kai);
    _root.zr_mc.gotoAndStop(h);
    if (kai == 100) {
        sg_mc._visible = true;
        an1_btn._visible = true;
        delete mm.onEnterFrame;
        aaa_text._visible = true;
    }
};
an1_btn.onPress = function() {
    nextFrame();
    clearInterval(kk);
};
sj = 100;
function aa() {
    if (kai == 100) {
        sj--;
        if (sj == 0) {
            nextFrame();
            clearInterval(kk);
        }
    }
}
kk = setInterval(aa, 2000);
var pf_cm:ContextMenu = new ContextMenu();
pf_cm.hideBuiltInItems();
pf_cm.builtInItems.quality = true;
xin2 = new ContextMenuItem("我的QQ空间", a2);
xin3 = new ContextMenuItem("我的BLOG", a3);
pf_cm.customItems.push(xin2, xin3, xin5);
function a2() {
    getURL("http://user.qzone.qq.com/465148396", "_blank");
}
function a3() {
    getURL("http://direngrey.ty168.net/user/direngrey/disk/index.html", "_blank");
}
_root.menu = pf_cm;

以上是载入和定义右健菜单的代码


---------------------------------------------------------------------------------------------------------------



stop();
var my_sound:Sound = new Sound();
my_sound.attachSound("sound");
my_sound.start();
this.attachMovie("my_mc", "my_mc_1", this.getNextHighestDepth());

以上是绑定音乐的代码


_quality = "MEDIUM";
zpp_mc.stop();
kcc.stop();
_root.zp_mc._x = 3050;
_root.zp_mc._y = 529;
_root.zp_mc._alpha = 50;
h = 0.3;
n = 0.3;
zp_mc.onRollOver = function() {
    _root.zp_mc._alpha = 100;
};
zp_mc.onRollOut = function() {
    _root.zp_mc._alpha = 80;
};
onEnterFrame = function () {
    _root.ce_mc._x = _root.zpp_mc._x+21;
    _root.ce_mc._y = _root.zpp_mc._y+16;
    if (_root.zp_mc._x>-2900) {
        if (_root.zp_mc._x<3299) {
            _root.zp_mc._x -= h;
        }
    }
    a = _xmouse;
    b = _ymouse;
    if (_root.zp_mc._x<3300) {
        if (_ymouse>427) {
            if (_xmouse>350) {
                _root.zp_mc._x += 3;
            }
        }
    }
    if (_root.zp_mc._x>-2900) {
        if (_ymouse>427) {
            if (_xmouse<350) {
                _root.zp_mc._x -= 3;
            }
        }
    }
};
an11.onPress = function() {
    gg = 0;
    clearInterval(mmmm);
    clearInterval(j);
    _root.zpp_mc.nextFrame();
    if (_root.zpp_mc._currentframe == 29) {
        _root.zpp_mc.gotoAndStop(28);
    }
    _root.kcc.nextFrame();
    if (_root.kcc._currentframe == 29) {
        _root.kcc.gotoAndStop(28);
    }
};
an10.onPress = function() {
    gg = 0;
    clearInterval(mmmm);
    clearInterval(j);
    _root.zpp_mc.prevFrame();
    _root.kcc.prevFrame();
};
function sj2() {
    _root.ce_mc.gotoAndPlay(1);
    _root.zpp_mc.nextFrame();
    if (_root.zpp_mc._currentframe == 29) {
        _root.zpp_mc.gotoAndStop(1);
    }
}
mmmm = setInterval(sj2, 3500);
an6.onPress = function() {
    h = 0;
};
oo.onPress = function() {
    if (gg == 0) {
        gg = 1;
        mmmm = setInterval(sj2, 3500);
        j = setInterval(op, 3500);
    }
};
function op() {
    _root.kcc.nextFrame();
    if (_root.kcc._currentframe == 29) {
        _root.kcc.gotoAndStop(1);
    }
}
j = setInterval(op, 3500);

以上是控制像册的代码-----------------------------------------------------------------------------------

on (press) {
    _root.zpp_mc._alpha =15;
    startDrag("_root.zpp_mc");
}
on (release) {_root.zpp_mc._alpha = 100;
    stopDrag();
}
以上是可以拖动的像册框代码--------------------------------------------------------------------------

top = vol._y;
left = vol._x;
right = vol._x;
bottom = vol._y+100;
level = 100;
//
vol.onPress = function() {
    startDrag("vol", false, left, top, right, bottom);
    dragging = true;
};
vol.onRelease = function() {
    stopDrag();
    dragging = false;
};
vol.onReleaseOutside = function() {
    dragging = false;
};
//
this.onEnterFrame = function() {
    if (dragging) {
        level = 100-(vol._y-top);
    } else {
        if (level>100) {
            level = 100;
        } else if (level<0) {
            level = 0;
        } else {
            vol._y = -level+100+top;
        }
    }
    _root.my_sound.setVolume(level);
};
以上是控制音量开关的代码------------------------------------------------------------------------- [ 此贴被263140179在2007-08-27 03:53重新编辑 ] 描述:源代码,用FLASH8.0打开
附件: 55.rar (32 K) 下载次数:1 本帖最近评分记录: 隐藏评分记录清空我的评分动态 共 条评分 我是个歇斯底里的精神病患者,我站在地狱的最深处玩弄着活人的鲜血,血腥味传遍了整个地狱 Posted:: 2007-08-27 03:40

回复 引用
顶端