|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43396 swfdisplayitem's method setname does not set name
Submitted: 2007-11-24 15:13 UTC Modified: 2008-11-03 01:00 UTC
From: tore dot aurstad at tebb dot no Assigned:
Status: No Feedback Package: Ming related
PHP Version: 5.2.5 OS: Windows Vista
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-11-24 15:13 UTC] tore dot aurstad at tebb dot no
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(
		$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(
		$disp = $movie->add($showbutton); 

Actual result:
See my description above.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 23:43 UTC]
Please try using this CVS snapshot:
For Windows:

 [2008-11-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC