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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 22:01:23 2020 UTC