Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    problema actionscipt 2.0

    Stò usando un preloader che funziona con l'actionscript 1.0 ma non funziona con l'actionscript 2.0, qualcuno ha avuto lo stesso problema? qualcun'altro non ha avuto lo stesso problema ma ha la soluzione?

    questo è lo script (classicissimo)
    -------
    PRIMO FRAME
    -------
    txtPercentage = Math.round((_level0.stage8.l.getBytesLoaded()/_level0.stage8.l.getBytesTotal())*100) add "%";
    tellTarget ("loader") {
    gotoAndPlay(Math.round((_level0.stage8.l.getBytesL oaded()/_level0.stage8.l.getBytesTotal())*100));
    }
    -------

    -------
    SECONDO FRAME
    -------
    if (_level0.stage8.l.getBytesLoaded() == _level0.stage8.l.getBytesTotal()) {
    nextScene();
    } else {
    gotoAndPlay(1);
    }
    -------

  2. #2
    questo e' flash <=4 ...



    ... e noi siamo alla 7.2
    codice:
    // primo frame
    stop();
    this.onEnterFrame = funciton():Void {
    	var l:Number = Number( this.getBytesLoaded() );
    	var t:Number = Number( this.getBytesTotal() );
    	var p:Number = Math.floor( ( l / t ) * 100 );
    	if( t > 0 && l >= t ) {
    		nextScene(); // mii disponibile da Flash2 :oVVoVe: 
    		delete this.onEnterFrame;
    	}
    	else {
    		loader.text = p + "%"
    	}
    }
    Formaldehyde a new Ajax PHP Zero Config Error Debugger

    WebReflection @WebReflection

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.