PHP: SWFText->__construct() - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SWFText->addString() SWFText

Last updated: Sat, 27 Jan 2007

view this page in

# SWFText->__construct()

(no version information, might be only in CVS)

SWFText->__construct() -- Creates a new SWFText object

## Описание

class SWFText {
void __construct ( void )
}

Внимание
Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

Creates a new SWFText object, fresh for manipulating.

## Примеры

This simple example will draw a big yellow "PHP generates Flash with Ming" text, on white background.

Пример 1. swftext() example

`<?php
$f = new SWFFont("Techno.fdb");
$t = new SWFText();
$t->setFont($f);
$t->moveTo(200, 2400);
$t->setColor(0xff, 0xff, 0);
$t->setHeight(1200);
$t->addString("PHP generates Flash with Ming!!");
$m = new SWFMovie();
$m->setDimension(5400, 3600);
$m->add($t);
header('Content-type: application/x-shockwave-flash');
$m->output();
?>`

add a note User Contributed Notes
SWFText->__construct()
There are no user contributed notes for this page.
SWFText->addString() SWFText

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST