note 46839 added to function.swfaction
| From: | ifrost at uos dot de | Date: | Mon, 25 Oct 2004 13:50:23 +0000 |
| Subject: | note 46839 added to function.swfaction | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79072@lists.php.net to get a copy of this message | ||
If you want to open an URL in a new window, define a shape ($ashape) and use this code:
<?php
$b = new SWFButton();
$b->addShape($ashape, SWFBUTTON_HIT | SWFBUTTON_UP | SWFBUTTON_DOWN | SWFBUTTON_OVER);
$b->addAction(
new SWFAction(
'getURL("http://www.php.net","_blank");'
// _blank is the target like in html
), SWFBUTTON_MOUSEDOWN
);
?>
But if you want it in the same window use this addAction():
<?php
$b->addAction(
new SWFAction(
'this.getURL("http://www.php.net");'
), SWFBUTTON_MOUSEDOWN
);
?>
----
Manual Page -- http://www.php.net/manual/en/function.swfaction.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46839
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46839&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46839&report=yes
Search -- http://master.php.net/manage/user-notes.php