在使用onEnterFrame的时候,一定要考虑到delete this.onEnterFrame,假如在同一个SWF文档中有比较多的onEnterFram的时候,会明显的感觉到电脑的负荷比较重的。
一般在使用onEnterFrame时在其内部自杀:
this.onEnterFrame = funtion()
{
..........................
delete this.onEnterFrame;
}
在使用onEnterFrame的时候,一定要考虑到delete this.onEnterFrame,假如在同一个SWF文档中有比较多的onEnterFram的时候,会明显的感觉到电脑的负荷比较重的。
一般在使用onEnterFrame时在其内部自杀:
this.onEnterFrame = funtion()
{
..........................
delete this.onEnterFrame;
}