|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-26 23:43 UTC] jani@php.net
[2008-11-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
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.