Visualizzazione dei risultati da 1 a 6 su 6

Discussione: modifica script....

  1. #1

    modifica script....

    Ciao a tutti , devo modificare uno script:

    onClipEvent (load) {
    this.acc = 6.0;
    this.ine = 1.5;
    this.endw = 670;
    this.endh = 490;

    }
    onClipEvent (enterFrame) {

    this.dw = (this.dw + (this.endw - this._width) / this.acc) / this.ine;
    this.dh = (this.dh + (this.endh - this._height)/ this.acc) / this.ine;
    this._width += this.dw;
    this._height += this.dh;

    }

    quando è terminato l'ingrandimento del rettangolo dovrei andare ad una determinata etichetta, lo so che si dovrebbe mettere:

    if(){
    }

    ma non so come fare !

    chi mi può dare una mano?



    grazie mille!

  2. #2
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691
    if(this._width > (this.endw-0.1)){
    fai ciò che vuoi
    }

  3. #3
    ..grazie mille ci provo subito!

  4. #4
    ma tu dici cosi:

    onClipEvent (load) {
    this.acc = 6.0;
    this.ine = 1.5;
    this.endw = 670;
    this.endh = 490;

    }
    onClipEvent (enterFrame) {

    this.dw = (this.dw + (this.endw - this._width) / this.acc) / this.ine;
    this.dh = (this.dh + (this.endh - this._height)/ this.acc) / this.ine;
    this._width += this.dw;
    this._height += this.dh;

    }
    if(this._width > (this.endw-0.1)){
    _root.gotoAndStop("inizio");
    }
    Perchè cosi non funziona, dove sbaglio?
    grazie ancora!

  5. #5
    Utente di HTML.it L'avatar di alpeweb
    Registrato dal
    Oct 2002
    Messaggi
    1,691
    magari se lo metti dentro all'on enterframe

  6. #6

    scusami sto inparando è per questo che domando sempre !!!

    grazie mille!

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.