Hoe kan ik de webpagina zo maken dat je Ming kunt gebruiken om een figuur te tekenen in Flash, en tegelijkertijd een boodschap kan echoen?



<? 
// Create movie and set parameters.

$movie = new SWFMovie();
$movie->setBackground(255, 255, 255);
$movie->setDimension(4000, 4000);

// Create a new shape.

$square = new SWFShape();

// Set a line width of 15, and rgb color of gold.

$square->setLine(15, 0xff, 0xcc, 0x33);

// Move the drawing pen toward the middle of the screen.

$square->movePenTo(2000, 2000);

// Draw the square, 'standing' it on a point.

$square->drawLine(500, -500);
$square->drawLine(500, 500);
$square->drawLine(-500, 500);
$square->drawLine(-500, -500);

// Add the square to the canvas.

$addedSquare = $movie->add($square);

// Output the $movie to the canvas.

header('Content-type: application/x-shockwave-flash'); 
$movie->output(); 

echo "hello";

?>
Door 2 aparte verzoeken te doen. Het ene verzoek genereert je SWF, en deze roep je apart aan met je object tags e.d.
Ik dacht dat Ming al 10 jaar dood was, bijzonder.

Reageren