php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tore dot aurstad at tebb dot no
New email:
PHP Version: OS:

 

 [2007-11-24 15:13 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-26 23:43 UTC] jani@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 16:01:31 2025 UTC