[]在加载swf动画之后在封装的里面报错了 , 用的官网的例子

private SWFPath: string = "res/example1.swf";
 
就只有这里改了
 
/**
    *从字节流的当前字节偏移量位置处读取一个 Int16 值。
    *@return Int16 值。
    */
    __proto.getInt16=function(){
        if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";
        var us=this._d_.getInt16(this._pos_,this._xd_);
        this._pos_+=2;
        return us;
    }
只在那个 If  那一行报错了 pos的大小是13000+ ; 控制台报错的原因是undifend
已邀请:

谭皓月

赞同来自:

其他都是官网的代码
 

谭皓月

赞同来自:

/**
    *从字节流的当前字节偏移量位置处读取一个 Int16 值。
    *@return Int16 值。
    */
    __proto.getInt16=function(){
        if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";
        var us=this._d_.getInt16(this._pos_,this._xd_);
        this._pos_+=2;
        return us;
    }
 

要回复问题请先

商务合作
商务合作