View the description of  active-x flash component

PHP Flash Examples

 Create Bitmap
 Create Button
 Create Circle
 Create EditText
 Create Polygon
 Create Sound
 Create Text

 JScript Examples
 VBScript Examples
 C# Code

Download

 Help File (71KB)
 ASFHelp.chm

 Full Trial (1.82MB)
 ASFDemo.zip




Active Server Flash Standard

Create Swf Flash from PHP on Web Server Side - Create-Polygon

Flash swf File Size: 859 Bytes
<?
// Create Flash Movie Object
$Movie
= new COM("eMarkASF.Movie");

$Movie->SetSize( 600,229);
$Movie->SetBackgroundColor( 255, 200, 0);

$color = new COM("eMarkASF.Color");
$color->ColorString = "Red";

// Create Flash Object
$obj
= new COM("eMarkASF.FlashObject");
$obj->CreatePolygon( 0, 0);
$obj->AddPolygonLine( -120, 160);
$obj->AddPolygonLine( 240, 0);
$obj->AddPolygonLine( -120, -160);
$obj->SolidFillColor = $color;

$obj->MoveCenterTo( 60, 150);
$Movie->AddObject( $obj);

$obj->CreatePolygon( 0,0);
$obj->AddPolygonCurve( 120,-75,120,75);
$obj->AddPolygonLineTo( 120,160);
$obj->AddPolygonLineTo( 0,0);

$color->ColorString = "#00B700";
$obj->SolidFillColor = $color;

$obj->MoveCenterTo( 300, 175);
$Movie->AddObject( $obj);

// Output the Flash Swf from PHP
header( "application/x-shockwave-flash" );
print( base64_decode( $Movie->Content2 ));

$obj->Free();
$Movie->Free();

?>