Flash CS3中出现“RangeError: Error #2006: 提供的索引超出范围。”是为什么?
答案:2 悬赏:20 手机版
解决时间 2021-02-09 04:48
- 提问者网友:鼻尖触碰
- 2021-02-08 17:39
输出如下问题RangeError: Error #2006: 提供的索引超出范围。 at flash.display::DisplayObjectContainer/removeChildAt() at mp4_test_fla::MainTimeline/presspic0() at mp4_test_fla::MainTimeline/funcblank00()代码:blank0.addEventListener(MouseEvent.CLICK,funcblank00);function funcblank00(event:MouseEvent):void{ presspic0(0);}function presspic0(n):void{ video = new Video(); video.x = 0; video.y = 0; bigpic.addChild(video); trace(bigpic.numChildren); video.attachNetStream(stream_ns); trace(mp4local[n]); stream_ns.play(mp4local[n]); var mp4d:Number=bigpic.getChildAt(1).width/830; bigpic.getChildAt(1).width=830; bigpic.getChildAt(1).height=bigpic.getChildAt(1).height/mp4d; bigpic.removeChildAt(2); for(var i:int=0;i<20;i++) { this["blank"+i].enabled=false; this["blank"+i].removeChildAt(1); }}
最佳答案
- 五星知识达人网友:迷人又混蛋
- 2021-02-08 19:01
建议你以后 发代码要换行。看着我头晕。。。。
DisplayObjectContainer/removeChildAt() at mp4_test_fla::MainTimeline/presspic0() at mp4_test_fla::MainTimeline/funcblank00()
应该是指你要移除显示对象调用 removeChildAt( index ) 传递的索引号计算错误
DisplayObjectContainer/removeChildAt() at mp4_test_fla::MainTimeline/presspic0() at mp4_test_fla::MainTimeline/funcblank00()
应该是指你要移除显示对象调用 removeChildAt( index ) 传递的索引号计算错误
全部回答
- 1楼网友:一叶十三刺
- 2021-02-08 19:16
你是否安装了asp.net?? 如果安了,可能是冲突的/ 我试过两台都是无法使用的.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯