Ming Square Codes
Enter your parameters and then select and copy codes.
Line Size:
Red:
Green:
Blue:
Alpha:
Square
Color:
Red:
Green:
Blue:
Alpha:
Width:
Height:
Pixel x:
Pixel y:
then copy
$myMovie = new SWFMovie(); $myMovie->setBackground(0x00, 0x00, 0x00); $myMovie->setDimension(450, 450); $squareshape = new SWFShape(); $squareshape->setRIGHTFill($squareshape->addFill(0,0,0,0)); $squareshape->setLine(0,0,0,0,0); $squareshape->drawLine(0,0); $squareshape->drawLine(0,0); $squareshape->drawLine(-0,0); $squareshape->drawLine(0,-0); $AquaSquare=$myMovie->add($squareshape); $AquaSquare->moveTo(0,0); /* BLANK SQUARE Remove this line: $squareshape->setRIGHTFill($squareshape->addFill(0,0,0,0)); */ /* IMAGE TILED SQUARE Replace this line: $squareshape->setRIGHTFill($squareshape->addFill(0,0,0,0)); WITH these lines: $bitmapfilename = 'roof.gif'; $fob = fopen($bitmapfilename,'rb'); $img = new SWFBitmap($fob); $squareshape->setRIGHTFill($squareshape->addFill($img, SWFFILL_TILED_BITMAP)); CHANGE ALPHA VALUE OF OUTLINE TO ZERO FOR NO OUTLINE (0,0,0,0,0); */ /* Transload image: http://www.lingolinda.com/ming/functions/roof.gif or replace it with your own */ header('Content-type: application/x-shockwave-flash'); $myMovie->output(); ?>
Back to Functions