swf_definetext
(PHP 4)
swf_definetext — Définit une chaîne de texte
Description
void swf_definetext
( int
$objid
, string $str
, int $docenter
)Définit une chaîne de texte.
Liste de paramètres
-
objid
-
L'identifiant de l'objet.
-
str
-
Le texte, sous la forme d'une chaîne de caractères.
-
docenter
-
docenter
indique si la chaîne doit être centrée (valeur de 1), ou pas.
Valeurs de retour
Aucune valeur n'est retournée.
Exemples
Exemple #1 Exemple d'un texte horizontal
- <?php
- $Xposition = 50;
- $Yposition = 50;
- $Zposition = 0;
- $Obj_depth = 1;
- $char = 'THIS IS THE TEXT';
- swf_pushmatrix();
- swf_definefont (swf_nextid(), "Mod");
- swf_fontsize(10);
- $secondid = swf_nextid();
- swf_definetext($secondid, $char, 1);
- swf_translate($Xposition, $Yposition, Zposition);
- swf_placeobject($secondid, $Obj_depth);
- swf_popmatrix();
- ?>