shape = new SWFShape(); $this->shape->setRightFill(255,0,255); $this->shape->addFill(100,0,200); $this->shape->movePenTo(0,0); $this->shape->drawLineTo(100,0); $this->shape->drawLineTo(100,100); $this->shape->drawLineTo(0,100); $this->shape->drawLineTo(0,0); $disp = $this->add($this->shape); $disp->moveTo(-50,-50); } protected function getAction() { return new SWFAction(" var act0; init = function() { this._y =100;this._x= 100; _root.lib.newMouse(this); }; "); } protected function setDisplayEvent() { $this->getDisplayItem()->setName("rect"); } } ?>