downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

SWFSprite::__construct> <SWFSprite
[edit] Last updated: Fri, 17 May 2013

view this page in

SWFSprite::add

(PHP 4 >= 4.0.5)

SWFSprite::addAdds an object to a sprite

说明

void SWFSprite::add ( object $object )
Warning

此函数是实验性的。此函数的表象,包括名称及其相关文档都可能在未来的 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.

返回值

没有返回值。



add a note add a note User Contributed Notes SWFSprite::add - [1 notes]
up
0
php_dev at dunnbypaul dot net
5 years ago
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();
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites