#43396 [NEW]: swfdisplayitem's method setname does not set name

From: Date: Sat, 24 Nov 2007 15:13:46 +0000
Subject: #43396 [NEW]: swfdisplayitem's method setname does not set name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120019@lists.php.net to get a copy of this message
From: tore dot aurstad at tebb dot no Operating system: Windows Vista PHP version: 5.2.5 PHP Bug Type: Ming related Bug description: swfdisplayitem's method setname does not set name 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 bug report at http://bugs.php.net/?id=43396&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43396&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43396&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43396&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43396&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43396&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43396&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43396&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43396&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43396&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43396&r=support Expected behavior: http://bugs.php.net/fix.php?id=43396&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43396&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43396&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43396&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43396&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43396&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43396&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43396&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43396&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43396&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43396&r=mysqlcfg

« previous php.bugs (#120019) next »