this is my doucoment class code
///
package {
import flash.display.Sprite;
import flash.display.Shape;
//import flash.display.Rectangle;
public class ShapeInstance extends Sprite
{
public function ShapeInstance()
{
var shape:Shape=new Shape()
shape.graphics.beginFill(0x0000,1);
shape.graphics.drawRect(20,20,10,10)
shape.graphics.endFill();
addChild(shape)
//dra()
}
}
}
///
everythng works fine but when i put stop(); in 1st frame i m getting error
“1180: Call to a possibly undefined method stop.”
can any one explain me the reason …