Login   Register  
PHP Classes
elePHPant
Icontem

File: example3.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Adi Setiawan  >  PHP Flash SlideShow  >  example3.php  >  Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: Example 3
Class: PHP Flash SlideShow
Create an image slideshow as a Flash animation
Author: By
Last change:
Date: 2004-12-28 20:13
Size: 787 bytes
 

Contents

Class file image Download
<?php
//include class file
include('class.flashslideshow.php');

/*
create new object with the following variabel
flashSlideShow($width, $height, $interval, $bgcolor)
$width, movie width in pixel
$height, movie height in pixel
$interval, interval in seconds between each images
$bgcolor, movie backgground color in hexadecimal value
*/
$movie = new flashSlideShow(3002253'#FFFFFF');


/*
differences from example1.php
instead of add image one by one, we add sequences of images in array
this array may come from readdir function,database query etc
*/
$myfile = array('image1.jpg','image2.jpg');
$movie->addImages($myfile);

/*
differences from example1.php and example2.php
instead of save movie, we can directly output the flash
*/
$movie->output();
?>