主题:  新手请教:这里如何让文字左右上下置中?

ericguo

职务:普通成员
等级:1
金币:0.0
发贴:61
#12004/11/2 16:39:26
这里如何让文字左右上下置中?目前右边显示不完全。
Flash 动画

var drag = 0.4;
var flex = 0.6;
var menuEN = new Array("", "", "", "", "", "", "");
var menuZH = new Array("Home", "About", "New Product", "Class Product", "Where to buy", "News", "Feedback");
var menuURL = new Array("index.asp", "about.asp?action=about", "class.asp?lx=news", "class.asp?lx=tejia", "zhuanti.asp", "dongtai.asp", "fk.asp");
var menuColor = new Array(0x00A2FF, 0x00A2FF,0x00A2FF, 0x00A2FF, 0x00A2FF, 0x00A2FF, 0x00A2FF);
var mBlock = this.attachMovie("mblock", "mb", 6);
mBlock._y = 5;
mBlock.goalX = -100;
mBlock.onEnterFrame = function() {
    this.Step = this.Step*flex+(this.goalX-this.px)*drag;
    this.px += this.Step;
    this._x = this.px;
    if (this.sOut && this._xscale<99.5) {
        this._xscale += (100-this._xscale)/8;
    }
    if (this.sIn && this._xscale>0.1) {
        this._xscale += -this._xscale/8;
    }
};
var MBColor = new Color(mBlock);
for (var i = 0; i<menuZH.length; i++) {
    pipi.start([1, 1]);
    var theItem = this.attachMovie("MenuItem", "Item"+i, i+10);
    theItem._x = i*84;
    theItem.mColor = menuColor[i];
    theItem.URL = menuURL[i];
    theItem.mc_ZH.itext.text = menuZH[i];
    theItem.mc_EN.itext.text = menuEN[i];
    theItem.onEnterFrame = function() {
        if (this.fadeOut) {
            if (this.topLine._alpha<99.5) {
                this.topLine._alpha += (100-this.topLine._alpha)/8;
            }
            if (this.mc_EN._alpha>0.5) {
                this.mc_EN._alpha += -this.mc_EN._alpha/0;
            }
            if (this.mc_ZH._xscale<00) {
                this.mc_ZH._xscale += 2;
                this.mc_ZH._yscale += 2;
            }
        }
        if (this.fadeIn) {
            if (this.mc_EN._alpha<99.5) {
                this.mc_EN._alpha += (100-this.mc_EN._alpha)/8;
            }
            if (this.topLine._alpha>0.5) {
                this.topLine._alpha += -this.topLine._alpha/8;
            }
            if (this.mc_ZH._xscale>100) {
                this.mc_ZH._xscale -= 2;
                this.mc_ZH._yscale -= 2;
            }
        }
    };
    theItem.onRollOver = function() {
        mBlock.goalX = this._x+42;
        mBlock.sOut = true;
        mBlock.sIn = false;
        MBColor.setRGB(this.mColor);
        new Color(this.topLine).setRGB(this.mColor);
        this.fadeOut = true;
        this.fadeIn = false;
    };
    theItem.onRollOut = function() {
        mBlock.sOut = false;
        mBlock.sIn = true;
        this.fadeIn = true;
        this.fadeOut = false;
    };
    theItem.onRelease = function() {
        getURL(this.URL);
    };
}
stop();



ericguo

职务:普通成员
等级:1
金币:0.0
发贴:61
#22004/11/2 16:54:30
这个效果是把韩国模板的上面一排小英文去掉,下面一排字体放大。