package{
import flash.events.*;
import flash.poultry.chickens;
import flash.Geom.Point;
public class Chicken extends poultry
{
public var neck:Flimsy = new Flimsy(this.body, this.head);
public var marbles:Sphere = new Sphere(this.z + 23, 4);
public var acZ:Number = 0;
public var isAlive:Boolean = true;
public function Chicken()
{
this.removeChild(neck);
addEventListener(Event.ENTER_FRAME, forceFeed, false, 0, true);
}
function forceFeed(e:Event):void
{
marbles.z -= acZ;
acZ += 9.8;
if (!isAlive)
{
squawk ("I hate my life!");
isDead();
}
function isDead():void
{
chicken.Body.explode(blood, 5, 5, new Point(this.parent));
ChickenIsAlive = false;
}
}
}
}
Copy and paste this on your chicken and watch it choke on marbles.
oh sorry didn't see that dejavu. i apoligise. i also apologise for spelling apologise wrong.