|
From: Justin C. <ju...@po...> - 2008-01-17 13:40:32
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Klaus Rechert wrote:
> Hi,
>
> DisplayItems are not created by users and therefore _must_ not be freed by
> users!
>
> Klaus
Oh. I think I'm showing my ignorance again. :(
My understanding has been that a SWFDisplayItem is created when a user
calls SWFMovie_add(), and it's this SWFDisplayItem object that needs to
be manipulated.
i.e.
// Add the square to the movie (at 0,0)
square_display_item = SWFMovie_add(test_movie, (SWFBlock)
square_definition);
// Move to 100, 100
SWFDisplayItem_moveTo(square_display_item, 100.00, 100.0);
// Progressively move the square down and to the right
for (i = 0; i <= 50; i++)
{
SWFMovie_nextFrame(test_movie);
SWFDisplayItem_move(square_display_item, 2, 2);
}
That example (recently written) is from the wiki page at:
http://www.libming.net/moin.cgi/SWFDisplayItem_move
Where am I thinking wrong, and should that wiki page be adjusted too?
Regards and best wishes,
Justin Clift
- --
The Flame Project - Open Source GUI for animated SVG & Flash
http://www.flameproject.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHj1rHFAuZn5lS2IMRAnhxAKDAHV/3wEM4lhQxNU3hiCfkwOD5wACghssT
PiykVBnAeGcP8RSAhJHLxUM=
=Ajwl
-----END PGP SIGNATURE-----
|