查看: 3552|回复: 0

有没有会FLASH的AS,帮我看下,能不能解决

[复制链接]
发表于 2008-4-24 13:14:55 | 显示全部楼层 |阅读模式
myURL = ["index.htm", "home/index.htm", "new/index.htm", "business/index.htm", "desing/index.htm", "recruitment/index.htm"];

numOfMenu = 6;

_global.active = pageNum;

_global.over = active;

for (i=1; i<=numOfMenu; i++) {
        this.mainText1.gotoAndStop(i);
        this.mainText2.gotoAndStop(i);
       
        this.onRollOver = function() {
                this.swapDepths(100);
                _global.over = this._name;
        };
        this.onRollOut = this.onDragOut=function () {
                _global.over = active;
                this._parent[over].swapDepths(100);
        };
        this.onRelease = function() {
                getURL(myURL[this._name-1], "_self");
               
        };
        this.onEnterFrame = function() {
                if (over == this._name) {
                        this.nextFrame();
                } else {
                        this.prevFrame();
                }
        };
}


这是一个FLASH的按钮脚本文件.我用IIS搭了一个环境,下面有目录1.2.3.4,因为这是一个导航栏,我在目录2下浏览里,点了一下,按钮3.这时,他会打开http://127.0.0.1/2/business/index.htm.而我所要的是http://127.0.0.1/business/index.htm这个._global.active = pageNum;是从网页上获得当前目录(http://127.0.0.1/2/),我想要的是http://127.0.0.1.也就是主目录,不知道应该么样实现,请高手或者认识高手的人帮助解决.

[ 本帖最后由 chinaheiyu 于 2008-4-24 20:25 编辑 ]
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

快速回复 返回顶部 返回列表