#43396 [Opn->Fbk]: swfdisplayitem's method setname does not set name
| From: | jani@php.net | Date: | Sun, 26 Oct 2008 23:44:00 +0000 |
| Subject: | #43396 [Opn->Fbk]: swfdisplayitem's method setname does not set name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130163@lists.php.net to get a copy of this message | ||
ID: 43396
Updated by: jani@php.net
Reported By: tore dot aurstad at tebb dot no
-Status: Open
+Status: Feedback
Bug Type: Ming related
Operating System: Windows Vista
PHP Version: 5.2.5
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2007-11-24 15:13:46] tore dot aurstad at tebb dot no
Description:
------------
There is some difficulty adressing objects in the swfmovie using
swfaction, at least when using Windows and Flash Player 9. I debugged
the .swf file generated with php ming in
Adobe Flash CS3 and saw that my references on swfdisplayitems was not
set correctly. I tried labelling a submovie (swfsprite object)
"showmovie", but the actionscript did not seem to be able to reference
the object. The debugging in Adobe Flash 9 showed the "showmovie" object
to instead have the labelling "_level0.instance1", I adjusted the code
and then was able to manipulate the objects in my swfmovie. The naming
scheme seems to follow this "_level0.instanceX" labelling, check by
debugging your .swf movies generated from php ming at least in
Windows+Flash player 9 to check if swfdisplayitem's method setname also
does not work here.
Tore Aurstad, Norway
Reproduce code:
---------------
$showbutton->addAction(new SWFAction(
"setTarget('_level0.instance1');
stop();
"), SWFBUTTON_MOUSEOVER);
$disp = $movie->add($showbutton);
//IN the code above _level0.instance1 is a showmovie.
Expected result:
----------------
I expected to instead use my labelling, i.e. after setname:
$showbutton->addAction(new SWFAction(
"setTarget('showmovie');
stop();
"), SWFBUTTON_MOUSEOVER);
$disp = $movie->add($showbutton);
Actual result:
--------------
See my description above.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43396&edit=1