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(" this.onEnterFrame =function(){this._x +=4;}; this.init = function(){this._y =100;this._x= 10;}; "); } protected function setDisplayEvent() { $this->getDisplayItem()->setName("rect"); } //$obj = new Object(); } ?>