PHP Velho Oeste 2024

SWFSprite::add

(PHP 5 < 5.3.0, PECL ming SVN)

SWFSprite::addAdds an object to a sprite

Açıklama

SWFSprite::add ( object $object ) : void
Uyarı

Bu işlev DENEYSELDİR. Bu işlevin davranışı, ismi ve belgeleri PHP'nin sonraki sürümlerinde hiçbir duyuru yapılmaksızın değiştirilebilir. Bu riski göze alamayacaksanız bu işlevi kullanmayın.

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.

Dönen Değerler

Hiçbir değer dönmez.

add a note add a note

User Contributed Notes 1 note

up
0
php_dev at dunnbypaul dot net
16 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();
?>
To Top