Hackles

Hackles is an Actionscript-like interpreter running on a pet.

Hackles will remember imports, function definitions, and anything you stuff into 'this', for the rest of the session. All the functions from PetControl are available as global functions.

Tricks
As an example of things to play with, try copying and modifying these programs into chat where Hackles can hear them (Each line in its own chat message):

Speak
trace("Hello Whirled")

Expressions
3+1 (5*4)/2  Math.pow(2, 3) "cats rule".replace("cat", "dog")

Functions
function greet(name) { trace("Hello, " + name) } greet("John") for each (stooge in ["Curly", "Larry", "Moe"]) greet(stooge)

PetControl
if (getMusicOwnerId == getOwnerId) trace("This is my master's song!") setLogicalLocation(0.5, 0, 0.5, 0);

Graphics
this.graphics.beginFill(0xff0000) this.graphics.drawRect(0, 0, 50, 50) this.rotation = 20 import flash.filters.BlurFilter this.filters = [ new BlurFilter ] import flash.text.TextField tf = new TextField; tf.text = "Bone plz?"; this.addChild(tf) import flash.display.Loader import flash.net.URLRequest this.tofu = new Loader this.tofu.load(new URLRequest("http://www.whirled.com/media/static/avatar/member.swf")) showPopup("Tofu!", this.tofu, 200, 200)

Other
eval("tra" + "ce('zo" + "mg')") getTimer Math.random