PHP Doku:: The SWFSound class - class.swfsound.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzNon-Text MIME-AusgabenMing (flash)The SWFSound class

Ein Service von Reinhard Neidl - Webprogrammierung.

Ming (flash)




The SWFSound class




SWFSound {
/* Methoden */
SWFSound SWFSound::__construct ( string $filename [, int $flags = 0 ] )


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
egonbraun a t gmail d o t c o m
14.08.2008 18:52
Just an example of how to use this class. It just cerates a serie of three images with a background sound in each one of them.

= new SWFMovie();

$img1 = new SWFBitmap(fopen('./tmp/img1.jpg', 'rb'));
$img2 = new SWFBitmap(fopen('./tmp/img2.jpg', 'rb'));
$img3 = new SWFBitmap(fopen('./tmp/img3.jpg', 'rb'));
$snd1 = new SWFSound(fopen('./tmp/1.wav', 'rb'), SWF_SOUND_22KHZ|SWF_SOUND_16BITS|SWF_SOUND_MONO);
$snd2 = new SWFSound(fopen('./tmp/2.wav', 'rb'), SWF_SOUND_22KHZ|SWF_SOUND_16BITS|SWF_SOUND_MONO);
$snd3 = new SWFSound(fopen('./tmp/3.wav', 'rb'), SWF_SOUND_22KHZ|SWF_SOUND_16BITS|SWF_SOUND_MONO);

$s = $movie->startSound($snd1);
$s->loopinpoint(1 * 100);

$i = $movie->add($img1);
$s = $movie->startSound($snd2);
$s->loopinpoint(1 * 100);
$i = $movie->add($img2);
$s = $movie->startSound($snd3);
$s->loopinpoint(1 * 100);
$i = $movie->add($img3);

$movie->setBackground(0xff, 0xff, 0xff);
$movie->setDimension(130, 97);
$movie->add(new SWFAction("gotoFrame(0); play();"));


PHP Powered Diese Seite bei
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",...)