PHP Doku:: Scales the object in global coordinates - function.swfdisplayitem.scaleto.html

Verlauf / Chronik / History: (14) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenMing (flash)The SWFDisplayItem classSWFDisplayItem->scaleTo

Ein Service von Reinhard Neidl - Webprogrammierung.

The SWFDisplayItem class

<<SWFDisplayItem->scale

SWFDisplayItem->setDepth>>

SWFDisplayItem->scaleTo

(PHP 4 >= 4.0.5)

SWFDisplayItem->scaleToScales the object in global coordinates

Beschreibung

void SWFDisplayItem::scaleTo ( float $x [, float $y ] )
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.

swfdisplayitem->scaleto() scales the current object to (x,y) in global coordinates.

The object may be a swfshape(), a swfbutton(), a swftext() or a swfsprite() object. It must have been added using the swfmovie->add().

Rückgabewerte

Es wird kein Wert zurückgegeben.


2 BenutzerBeiträge:
- Beiträge aktualisieren...
Julien Séjourné
19.07.2004 2:23
It's good to know that when you do "$i->scaleTo(0,0)", it doesn't output an "empty object" ( nothing... ) on the screen, but the object with its original dimensions.

13.09.2003 4:43
after a shape etc. has been added, the refence to the DisplayItem is returned:
             $displayItem = $sprite->add($shape);
             $displayItem->scaleTo(0.1,0.1);

the above scales it to 0.1 of whatever its original size was



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",...)