Author Archives: Zevan

Convert Timeline Code to Document Class

For a few different reasons I decided to write some php code to convert timeline code to a document class. The script is done and it seems to work pretty nicely. I’m sure there are a few bugs, but I’ve tested around 30 snippets from this site and they all worked.
To test it out:
1) [...]

Posted in misc | Tagged , , | 10 Comments

base32 Twitter Coordinates

CLICK HERE TO COPY
Actionscript:

[SWF(width = 800, height=700, frameRate=30, backgroundColor=0x000000)]

var canvas:BitmapData = new BitmapData(1000,800,false, 0x000000);

addChild(new Bitmap(canvas));

 

var coords:String ="";

var index:int = 0;

addEventListener(Event.ENTER_FRAME, onLoop);

 

var s:Shape = new Shape();

with (s.graphics) beginFill(0xFFFFFF, 0.3), drawCircle(4,4,4)

var brush:BitmapData = new BitmapData(10,10, true, 0x00000000);

brush.draw(s);

 

var pnt:Point = new Point();

function onLoop(evt:Event):void {

     if (coords.length> 0){

         for (var i:int = 0; i<100;i++){

    [...]

Posted in BitmapData, external data, string manipulation, strings | Tagged , , , | 2 Comments

ActionSnippet Twitter

I guess it's just weird for me to do twitter search api experiments and not have an account that I use... so...
http://twitter.com/actionsnippet

Posted in misc | Tagged | Leave a comment

Twitter Texture Alphabet

CLICK HERE TO COPY
Actionscript:

[SWF(width = 1000, height=800, frameRate=60)]

 

// if you don't have flex you'll need to embed this font in your library

[Embed(source="/Library/Fonts/Verdana.ttf", fontFamily="Verdana")]

var Verdana:Class;

 

var canvas:BitmapData = new BitmapData(1000,800,false, 0xFFFFFF);

addChild(new Bitmap(canvas));

var overlay:BitmapData = new BitmapData(1000,800,true, 0x01FFFFFF);

 

 

var txt:TextField = TextField(addChild(new TextField()));

with (txt){

    defaultTextFormat = new TextFormat("Verdana", 10);

    embedFonts = true;

    width = stage.stageWidth-20;

    [...]

Posted in BitmapData, external data, string manipulation, strings | Tagged , , , | 2 Comments