[Swfdec] Patches to make blocky.swf playable

Nguyen Thai Ngoc Duy pclouds at gmail.com
Sun Jun 24 17:25:29 PDT 2007


On 6/24/07, Nguyen Thai Ngoc Duy <pclouds at gmail.com> wrote:
> On 6/24/07, Nguyen Thai Ngoc Duy <pclouds at gmail.com> wrote:
> > On 6/24/07, Benjamin Otte <otte at gnome.org> wrote:
> > > > 0006-Remove-movies-with-the-same-name-when-adding-new-mov.patch
> > > >
> > > This is definitely wrong. See attached movie81.as test. It seems the
> > > movie with the lowest depth is taken if multiple movies have the same
> > > name.
> > > Could you give a reason for why this was necessary?
> >
> > Okay so the fix should go to duplicateMovie(). If my memory serves me
> > well, cells in blocky.swf (let's take one: t0_0) are duplicated from
> > movie "tiles" at the beginning of the game. When I complete a level,
> > t0_0 will be duplicated again. gdb showed me that after t0_0 was
> > duplicated the second time, level0 had both movies with the same name
> > "t0_0" and  swfdec_sprite_movie_get_by_name happily gave me the first
> > t0_0 (while I needed the second one). I'll see if I can mimic the
> > scenario with a simple actionscript script.
>
> You were right ;-) I did a little hack to blocky.swf and found out
> that the depth, which was passed to duplicateMovieClip, was different
> from adobe player's traces. Guess I have more work to do :-)

All right, the bug is in my clonesprite implementation. Here is the
fix with test. The first patch is needed for test to work. If you
don't care about tests, skip patch 1.

My bad, sorry.
-- 
Duy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Better-createEmptyMovieClip.patch
Type: text/x-patch
Size: 1711 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/swfdec/attachments/20070624/bb194ee7/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-CloneSprite-depth.patch
Type: text/x-patch
Size: 2699 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/swfdec/attachments/20070624/bb194ee7/attachment-0001.bin 


More information about the Swfdec mailing list