Visualizzazione dei risultati da 1 a 2 su 2

Discussione: da flash 6 a flash 8

  1. #1

    da flash 6 a flash 8

    un mio amico mi ha passato un fla con uno scroller con accelerazione.
    lo ho editato, ma quando lho incollato nel mio progetto nn funzionava.
    prova e riprova ho notato ke il fla originale era impostato su player 6, mentre il mio sull 8.
    facendo delle prove con la funzione trace(), ho notato ke sul player 8, oldX e newX mi da NaN.
    di seguito posto il codice.

    right = 190;
    left = 695;
    slide = 480;
    factor = 19;
    ease = 10;
    WindowIN.onEnterFrame = function() {
    X = (getProperty("_root.Norman", _x) - _root.top) * _root.factor;
    newX = oldX - (X + oldX) / _root.ease;
    setProperty("_root.WindowIN.Nadine", _x, newX);
    oldX = newX;
    }

    // scroll
    Norman.onEnterFrame = function() {
    setProperty("_root.Norman.DarkIN", _alpha, "90");
    setProperty("_root.Norman.LightIN", _alpha, "75");
    if (status == 1) {
    setProperty("_root.Norman.LightIN", _visible, "100");
    setProperty("_root.Norman.DarkIN", _visible, "0");
    }
    // end if
    if (status == 0) {
    setProperty("_root.Norman.LightIN", _visible, "0");
    setProperty("_root.Norman.DarkIN", _visible, "100");
    }
    // end if
    }
    Norman.onRollOver, onDragOver = function() {
    status = 1;
    }
    Norman.onRollOut, onDragOut = function() {
    status = 0;
    }
    Norman.onPress = function() {
    startDrag(this, false, _root.right, _root.slide, _root.left, _root.slide);
    }
    Norman.onRelease, onReleaseOutside = function() {
    stopDrag();
    }

  2. #2
    problema risolto grazie lo stesso.
    per ki fosse interessato ho sostiuito:
    oldX = newX;

    con:
    oldX = _root.WindowIN.Nadine._x

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.