flash scroll

  • Rauno 11 a

    no tra ma ei saa aru, miks see ei tööta?!

    var scrollUpper:Number = 41;
    var scrollLower:Number = 400;

    var textUpper:Number = 295;
    var textLower:Number = 147;

    var scrollRange:Number = scrollLower - scrollUpper;
    var textRange:Number = textLower - textUpper;

    function scroll () {
    var moved:Number = scrollFace._y - scrollUpper;
    var pcMoved:Number = moved / scrollRange;
    var textMoved:Number = pcMoved * textRange;
    Text._y = textLower - textMove;
    }

    scrollFace.onPress = function() {
    this.startDrag (false, this._x, scrollUpper, this._x, scrollLower);
    this.onMouseMove = scroll;
    }

    scrollFace.onRelease = scrollFace.onReleaseOutside = function() {
    this.stopDrag();
    this.onMouseMove = null;
    }

    ----

    vastus = function(){
    if(problem solved = true) {
    trace("Suured tänud!");

    }
    else {
    trace("God Damn wtf!");
    }

    vastus();

    11. november 2008 - 07:44:02 · Otselink

  • Ooker 11 a

    tekst._y = textLower - textMoveDDDDDDDDDDD;
    ?

    11. november 2008 - 09:33:05 · Otselink

  • Rauno 11 a

    seda ma arvasin, et uniseapeaga kuskil typo, aga ise ei leidnud.

    many thanks!

    11. november 2008 - 15:29:01 · Otselink