HELP MY SORRY A**!

Out of context: Reply #11

  • Started
  • Last post
  • 19 Responses
  • versa0

    no no............. i am creating with actionscript empty mcs that I then fill with a certain color and animate. i want to just use them as background shapes. i then the rest of the elements in the scene to sit on top of those shapes. here is some code:

    this.createEmptyMovieClip ("bgdframeMC", 10);
    bgdframeMC._x = 550;
    bgdframeMC._y = 85;
    bgdframeMC.moveTo (0, 0);
    bgdframeMC.beginFill (0x202000);
    bgdframeMC.lineTo (300, 0);
    bgdframeMC.lineTo (300, 2);
    bgdframeMC.lineTo (0, 2);
    bgdframeMC.lineTo (0, 0);
    bgdframeMC.endFill ();

    // will complete drawing of bgdframe
    bgdframe_grow = function () {
    stageWidth = Stage.width;
    stageHeight = Stage.height;
    endHeight = 400;
    if (bgdframeMC._height = 400) {
    bgdframeMC._height = 400;
    endbgdframe_grow ();
    }
    }
    updateAfterEvent ();
    };
    // called when bgdframe_grow complete
    endbgdframe_grow = function () { clearInterval (bgdframeSI);gotoAndPlay (_currentframe + 1);};
    //assesses bgdframe_grow speed in MilliSeconds by calling function at a set interval
    bgdframeSI = setInterval (bgdframe_grow, 30);
    // --------------------------------...
    stop();

    thanks

View thread