note 79387 modified in ming.swfaction by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 21:23:17 +0000 |
| Subject: | note 79387 modified in ming.swfaction by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147236@lists.php.net to get a copy of this message | ||
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
--was--
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
http://php.net/manual/en/ming.swfaction.php