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

    Cambiare colore ad un testo dinamico

    Ciao a tutti ragazzi! Dovrei cambiare il colore di un testo dinamico tramite actionscript... Qual'è il comando da usare?
    Grazie in anticipo!!!

  2. #2
    Codice PHP:
     miocampoditesto.textColor 0xFF0000
    e se vuoi esagerare una cosa del tipo:
    Codice PHP:
    var i:Number 0;
    var 
    tf:TextField =this.createTextField("tf"this.getNextHighestDepth(), 101010022);
    tf.text'Hello';
    function 
    changeColor(){
        if (
    i==0) {
           
    i++;
           
    this.textColor 0x00FF00;
        }else if(
    i==1){
            
    i++;
            
    this.textColor 0xFF0000;
        }else if(
    i==2){
            
    i++;
            
    this.textColor 0x552288;
        }else if(
    i==3){
            
    i++;
            
    this.textColor 0x7865f2;
        }else if(
    i==4){
            
    i=0;
            
    this.textColor 0x162ff6;
        }
    }
    setInterval(function(){changeColor.call(tf);}, 500); 
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

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.