©
本文档使用 PHP中文网手册 发布
(PHP 5 <= 5.3.0, PECL ming SVN)
SWFSprite::add — Adds an object to a sprite
$object
)此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 PHP 发布版本中未通知就被修改。使用本函数风险自担 。
swfsprite::add() adds a swfshape() , a swfbutton() , a swftext() , a swfaction() or a swfsprite() object.
For displayable types ( swfshape() , swfbutton() , swftext() , swfaction() or swfsprite() ), this returns a handle to the object in a display list.
没有返回值。
[#1] php_dev at dunnbypaul dot net [2007-07-31 12:33:18]
Apparently this function DOES, in fact, return a value as many of the MING examples show. It is a SWFDisplayItem. Here is an excerpt of an example that appears elsewhere in the MING docs...
<?php
$p = new SWFSprite();
$i = $p->add($s);
$p->nextFrame();
$i->rotate(15);
$p->nextFrame();
?>