[Swfdec] Patches to make blocky.swf playable
Nguyen Thai Ngoc Duy
pclouds at gmail.com
Sun Jun 24 14:38:09 PDT 2007
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 :-)
--
Duy
More information about the Swfdec
mailing list