Convert AS3 Timeline Codes to Document Class Easily

Here is a great tool that you can convert Flash Timeline codes to the document classes. It works perfectly. The only thing you do is, just copy timeline code into the empty textarea below, then put a name for your document class. When you press “submit” button, a php script generates your document class code at once. Thanks to Zevan Rosser for this converter tool. By the way, he is a smart coder. Many of Zevan’s codes are too short, but also functional. You should check his blog also for some kind of unique tutorials.
AS3 Timeline Code to Document Class Converter

One thought on “Convert AS3 Timeline Codes to Document Class Easily”

  1. clock_mc.visible = false;

    dispatchEvent(new InteractionEvent(InteractionEvent.INTERACTION_DISABLE_NEXT, true));

    //Get the user defined variables
    var mcArr:Array = MovieClip(this.parent).myObjectsList;
    var strokeSeconds:Number = MovieClip(this.parent).numberOfSeconds * 1000;
    var visStart:Number = MovieClip(this.parent).startFromThisObject;
    var run:Boolean = MovieClip(this.parent).builderAutoRun;
    var alt:Boolean = MovieClip(this.parent).replaceObjects;
    //Calculate actual event fires
    var strokeNumber:Number = mcArr.length;

    //Hide all clips that are influenced by the timer event
    for(var v:uint = visStart; v < strokeNumber; v++){
    mcArr[v].visible = false;
    // Timer in progress?
    var building:Boolean = false;
    // TIMER
    function initBuild(){
    if(!building) {
    var counter:Number = visStart;
    trace("Counter =" + counter);
    var Builder:Timer = new Timer(strokeSeconds,strokeNumber – visStart);

    Builder.addEventListener(TimerEvent.TIMER, visibleBuilder);
    Builder.addEventListener(TimerEvent.TIMER_COMPLETE, closeBuilder);
    function visibleBuilder(e:TimerEvent):void {
    building = true;
    mcArr[counter].visible = true;
    if(counter == 0){ // doesn't quite work right
    mcArr[counter].visible = false;
    } else {
    mcArr[counter-1].visible = false;
    counter ++;
    function closeBuilder(e:TimerEvent):void {
    building = false;
    Builder.removeEventListener(TimerEvent.TIMER, visibleBuilder);
    Builder = null;
    dispatchEvent(new InteractionEvent(InteractionEvent.INTERACTION_ENABLE_NEXT, true));
    // if it's to fire without user interaction

Leave a Reply

Your email address will not be published. Required fields are marked *