note 35977 added to function.swfbutton.addaction
| From: | T_wigg at rn2 dot php dot net | Date: | Mon, 22 Sep 2003 01:41:43 +0000 |
| Subject: | note 35977 added to function.swfbutton.addaction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-56857@lists.php.net to get a copy of this message | ||
I had a hard time finding a way to stop a sprite, so I figured I would post it.
$button = new SWFButton();
$button->addShape($box, SWFBUTTON_UP | SWFBUTTON_HIT | SWFBUTTON_OVER | SWFBUTTON_DOWN);
$button->addAction(new SWFAction("
setTarget('box');
stop();
"), SWFBUTTON_MOUSEUP);
$item = $movie->add($button);
This works the same way with play();
----
Manual Page -- http://www.php.net/manual/en/function.swfbutton.addaction.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35977
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35977&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35977&report=yes