略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SWFFill::moveTo

2024-12-21

SWFFill::moveTo

(PHP 5 < 5.3.0, PECL ming SVN)

SWFFill::moveToMoves fill origin

说明

SWFFill::moveTo ( float $x , float $y ) : void
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。

Moves the fill origin to the given global coordinates.

参数

x

X-coordinate

y

Y-coordinate

返回值

没有返回值。

add a note add a note

User Contributed Notes 1 note

up
0
Anonymous
15 years ago
onClipEvent()

At the mailinglist on www.opaque.net I found SWFDisplayItem->addAction,
which is defined in ming-0.2a/php_ext/ming-4.0.7.c
Seems to be the equivalent to the onClipEvent() function in ActionScript:

void SWFDisplayItem->addAction(SWFAction action, int flags)

flags for SWFDisplayItem_addAction as PHP-Constants:

SWFACTION_ONLOAD
SWFACTION_ENTERFRAME
SWFACTION_UNLOAD
SWFACTION_MOUSEMOVE
SWFACTION_MOUSEDOWN
SWFACTION_MOUSEUP
SWFACTION_KEYDOWN
SWFACTION_KEYUP
SWFACTION_DATA

The following might be the same as onClipEvent(data) inside $child:

$m = new SWFMovie();
...
$child = new SWFMovie();
...
// SWFMovie->add returns SWFDisplayItem:
$i = $m->add($child);
$i->addAction($action_script, SWFACTION_DATA);

Jan

官方地址:https://www.php.net/manual/en/swffill.moveto.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3