Sometimes we don't care a object's name, and don't want the field be set on
MovieClip.
For example:

> .flash bbox=200x200 version=9 fps=50 name="sc_mc.swf" compress export=false

.action:

package

{

 import flash.display.MovieClip;

 public class SCMain extends MovieClip

 {

 }

}

.end

.frame 1

 .box mybox1 width=100 height=50 color=black fill=none

 .put mybox1

.frame 2

 .box mybox2 width=100 height=50 color=blue fill=none

 .put mybox2

 .del mybox1

.frame 3

 .box mybox3 width=100 height=50 color=green fill=none

 .put mybox3

 .del mybox2

.frame 4

 .box mybox4 width=100 height=50 color=red fill=none

 .put mybox4

 .del mybox3

.end

There is two issues about this SWF:

   1. It will cause ReferenceError: Error #1056.
   2. When the MovieClip is playing, it will not be garbage-collected even
   if it has been removed from stage.

I commit a patch which adds a 'noinstancename' parameter in .put . I expect
the patch may resolve these problems, like this:

> .flash bbox=200x200 version=9 fps=50 name="sc_mc.swf" compress export=false

.action:

package

{

 import flash.display.MovieClip;

 public class SCMain extends MovieClip

 {

 }

}

.end

.frame 1

 .box mybox1 width=100 height=50 color=black fill=none

 .put mybox1 noinstancename

.frame 2

 .box mybox2 width=100 height=50 color=blue fill=none

 .put mybox2 noinstancename

 .del mybox1

.frame 3

 .box mybox3 width=100 height=50 color=green fill=none

 .put mybox3 noinstancename

 .del mybox2

.frame 4

 .box mybox4 width=100 height=50 color=red fill=none

 .put mybox4 noinstancename

 .del mybox3

.end


BTW: I also changed jpeg.c to fix compiler error when jpep is disabled.

Please accept these patch. I need them. Thank you.

Attachment: jpeg.patch
Description: Binary data

Attachment: noinstancename.patch
Description: Binary data

Reply via email to