note 68848 added to function.swfaction
| From: | samrerb at gmail dot com | Date: | Sun, 13 Aug 2006 04:03:53 +0000 |
| Subject: | note 68848 added to function.swfaction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115851@lists.php.net to get a copy of this message | ||
for creating a play/pause button I used this script:
<?php
//pause button
$b = new SWFButton();
$b->addShape(rect(0, 0xff, 0), SWFBUTTON_HIT | SWFBUTTON_UP | SWFBUTTON_DOWN | SWFBUTTON_OVER);
$b->addAction(new SWFAction("stop();"),SWFBUTTON_MOUSEDOWN);
$i = $movie->add($b);
//play button
$b = new SWFButton();
$b->addShape(rect_two(0, 0xff, 0), SWFBUTTON_HIT | SWFBUTTON_UP | SWFBUTTON_DOWN |
SWFBUTTON_OVER);
$b->addAction(new SWFAction("play();"),SWFBUTTON_MOUSEDOWN);
$i = $movie->add($b);
?>
it has to be run during every frame for the buttons to be in every frame... hope that helps
somebody....
----
Server IP: 64.71.164.2
Probable Submitter: 24.60.214.49
----
X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
UPPERCASE_25_50 autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.swfaction.php
Edit -- https://master.php.net/note/edit/68848
Del: integrated -- https://master.php.net/note/delete/68848/integrated
Del: useless -- https://master.php.net/note/delete/68848/useless
Del: bad code -- https://master.php.net/note/delete/68848/bad+code
Del: spam -- https://master.php.net/note/delete/68848/spam
Del: non-english -- https://master.php.net/note/delete/68848/non-english
Del: in docs -- https://master.php.net/note/delete/68848/in+docs
Del: other reasons-- https://master.php.net/note/delete/68848
Reject -- https://master.php.net/note/reject/68848
Search -- https://master.php.net/manage/user-notes.php