Hi!
I'm trying to change color of the circle on mouseover event, but for some reason it doesn't change color when I mouse over it. As far as I understood, as long as I set the name for object, I can access it with that name thru actionscript. I'm using ming, swf php module. Thank you.
Code:
<?
$movie = new SWFMovie();
$movie->setRate(30);
$movie->setDimension(550, 400);
$movie->setBackground(0xFF, 0xFF, 0xFF);
$circle = new SWFShape();
$circle->setRightFill(33,66,99);
$circle->drawCircle(30);
$c1 = $movie->add($circle);
$c1->moveTo(100,100);
$c1->setName("circle");
$movie->add(new SWFAction("circle.onMouseOver=function(){ this._x = 10; };"));
$movie->save("1.swf");
?>