PHP Doku:: Adds an object to a sprite - function.swfsprite.add.html

Verlauf / Chronik / History: (46) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenMing (flash)The SWFSprite classSWFSprite->add

Ein Service von Reinhard Neidl - Webprogrammierung.

The SWFSprite class

<<The SWFSprite class

SWFSprite->__construct>>

SWFSprite->add

(PHP 4 >= 4.0.5)

SWFSprite->addAdds an object to a sprite

Beschreibung

void SWFSprite::add ( object $object )
Warnung

Diese Funktion ist EXPERIMENTELL. Das Verhalten, der Funktionsname und alles Andere, was hier dokumentiert ist, kann sich in zukünftigen PHP-Versionen ohne Ankündigung ändern. Seien Sie gewarnt und verwenden Sie diese Funktion auf eigenes Risiko.

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.

Rückgabewerte

Es wird kein Wert zurückgegeben.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
php_dev at dunnbypaul dot net
31.07.2007 21:33
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();
?>



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)