I’m learning php! Yay. Why doesn’t the output of this file show the two squares swapping depths? Is this supposed to happen? How should I be using setDepth?
Thanks for any help you can give.
<?
Ming_setScale(20.00000000);
ming_useswfversion(6);
$movie=new SWFMovie();
$movie->setDimension(550,400);
$movie->setBackground(0xff,0xff,0xff);
$movie->setRate(12);
$squareshape=new SWFShape();
$squareshape->setRightFill(255,0,0);
$squareshape->setLine(1,0,0,0);
$squareshape->drawLine(100,0);
$squareshape->drawLine(0,100);
$squareshape->drawLine(-100,0);
$squareshape->drawLine(0,-100);
$mc0=$movie->add($squareshape);
$mc1=$movie->add($squareshape);
$mc0->moveTo(50,200);
$mc1->moveTo(100,200);
$mc0->setDepth(1);
$mc1->setDepth(2);
$movie->nextFrame();
$mc0->setDepth(2);
$mc1->setDepth(1);
$movie->nextFrame();
$mc0->setDepth(1);
$mc1->setDepth(2);
$movie->nextFrame();
$mc0->setDepth(2);
$mc1->setDepth(1);
$movie->nextFrame();
$movie->save("output.swf");
?>