当前位置: 代码迷 >> Flash >> 怎么使鼠标移动到动画下面,效果停止
  详细解决方案

怎么使鼠标移动到动画下面,效果停止

热度:3790   发布时间:2013-02-26 00:00:00.0
如何使鼠标移动到动画上面,效果停止

function init()
{
    playDirection = "left";
    imgSpeed = 30;
    rotateSpeed = 3000;
    imageWidth = 240;
    imageHeight = 410;
    this.createEmptyMovieClip("imgHolder", 1);
    imgHolder._x = 47;
    imgHolder._y = -1;
    targetAlpha = new Array();
    targetAlpha = [0, 100, 100, 100, 100, 0];
    targetX = new Array();
    targetX = [683, -57, 189, 437, 683, 683];
    targetY = new Array();
    targetY = [6, -15, -15, -15, -15, 6];
    getImageDepth = new Array();
    getImageDepth = [80, 90, 110, 200, 112, 100];
    targetS = new Array();
    targetS = [0, 100, 100, 100, 100, 0];
    targetVisible = new Array();
    targetVisible = [true, true, true, true, true, true, true];
    leftBtn.swapDepths(3000);
    rightBtn.swapDepths(3001);
    disable_btn.swapDepths(3002);
    textVisible = new Array();
    textVisible = [false, false, false, true, false, false, false];
    totalNum = imgNum;
    indexNum = 1;
    for (var _loc3 = 0; _loc3 < totalNum; ++_loc3)
    {
        imgHolder.attachMovie("img", "img" + _loc3, _loc3 + 10);
        var _loc2 = imgHolder["img" + _loc3];
        _loc2.no_txt.text = _loc3;
        _loc2._visible = false;
        _loc2._xscale = 50;
        _loc2._yscale = 50;
        _loc2._alpha = 0;
        _loc2.no_txt.text = _loc3;
        _loc2.no_txt._visible = false;
        loadThumbs(thumb_image[_loc3], _loc2.thumbs.th);
        loadThumbs(thumb_image[_loc3], _loc2.thumbs2.th);
        _loc2.desc_txt.autoSize = true;
        _loc2.desc_txt.text = img_name[_loc3];
        _loc2.desc_txt.text = img_name[_loc3];
        setBlurFilter(_loc2, 0, 0, 0);
        _loc2.textBg._width = _loc2.desc_txt.textWidth + 20;
        _loc2.desc_txt._visible = false;
        _loc2.textBg._visible = false;
  相关解决方案