文字

SWFSprite::add

(PHP 5 <= 5.3.0, PECL ming SVN)

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.

返回值

没有返回值。

用户评论:

[#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();
?>

上一篇: 下一篇: