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

    Variablili e operatore +

    Come faccio ad aggiungere una varibile ad un numero...mi spiego:
    Ho un campo di testo imput con variabile altezza.
    Devo spostare una barra a seconda del valore immesso.
    Quindi ho pensato di fare cosi':
    on (keyPress "<Insert>") {
    _root.linea._y= 250 + altezza;
    }
    Naturalmente mi aspettavo che non funzionasse, mi dite tutto quello che devo cambiare?
    Grazie e ciau
    Overhead the albatross hangs/motionless upon the air/And deep beneath the rolling waves/in labyrinths of coral caves/The echo of a distant time/Comes willowing across the sand/And everything is green and submarine

  2. #2
    codice:
    on (keyPress "<Insert>") { 
    _root.linea._y= 250 + Number(altezza); 
    }

  3. #3
    Grazie mille!
    Overhead the albatross hangs/motionless upon the air/And deep beneath the rolling waves/in labyrinths of coral caves/The echo of a distant time/Comes willowing across the sand/And everything is green and submarine

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.