Skip to content

Instantly share code, notes, and snippets.

@destroytoday
Created September 14, 2010 04:37
Show Gist options
  • Save destroytoday/578551 to your computer and use it in GitHub Desktop.
Save destroytoday/578551 to your computer and use it in GitHub Desktop.
protected function statusEnterframeHandler(event:Event):void
{
switch (view.status.text) {
case "starting up":
view.status.text = "starting up ";
break;
case "starting up ":
view.status.text = "starting up.";
break;
case "starting up.":
view.status.text = "starting up. ";
break;
case "starting up. ":
view.status.text = "starting up..";
break;
case "starting up..":
view.status.text = "starting up.. ";
break;
case "starting up.. ":
view.status.text = "starting up...";
break;
case "starting up...":
view.status.text = "starting up... ";
break;
case "starting up... ":
view.status.text = "starting up....";
break;
case "starting up....":
view.status.text = "starting up.... ";
break;
case "starting up.... ":
view.status.text = "starting up";
break;
}
}
@MikeGrace
Copy link

Haha! That's awesome!

@kristoferjoseph
Copy link

    //Silly fake loader
    public var status:String;
    protected var count:int = 0;
    protected var loaderArray:Array = ["Starting up","Starting up.","Starting up..","Starting up..."];
    protected var frame:int; 

    private function enterFrameHandler(event:Event):void
    {
        ++frame;
        if(frame % 20 == 0);
        if(count < 3)
        {
            ++count;
        }
        else
        {
            count = 0;
        }

        status = loaderArray[count];
    }

@destroytoday
Copy link
Author

@kristoferjoseph - Let's discuss this when you get in the office.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment