主题:  飞行菜单的问题,帮忙!

Fierce

职务:普通成员
等级:2
金币:10.0
发贴:468
#12001/7/19 12:11:24
我找了一个飞行菜单的fla
场景中有两个mc

第一个的mc如下(控制物体)(这个mc没有Instace Name):
onClipEvent (enterFrame) {
    modifier = this._xscale/-50;
    this._y = (_root.distance/50)*modifier+this._y;
    if (this._y>400) {
        this._y = -1;
    } else if (this._y<-75) {
        this._y = 400;
    }
}

还有一个空mc(这个也mc没有Instace Name)
mc如下:
onClipEvent (enterFrame) {
    _root.distance = 200-_root._ymouse;
}

我想问一下 第二个mc中的distance代表什么?昨天我问,大家都说是mc的Instace Name,但是场景中没有命名的mc啊........



5D荣誉斑竹

职务:普通成员
等级:1
金币:10.0
发贴:265
#22001/7/19 15:31:49
冷语在上个贴子中说
引用:
还有一个空mc(这个也mc没有Instace Name)
mc如下:
onClipEvent (enterFrame) {
    _root.distance = 200-_root._ymouse;
}

我想问一下 第二个mc中的distance代表什么?昨天我问,大家都说是mc的Instace Name,但是场景中没有命名的mc啊........


distance是变量,它的值是鼠标的_y与200的偏移量。
有赋值肯定是变量。