Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/07/2007, 20:34
Diego.
 
Fecha de Ingreso: julio-2007
Mensajes: 68
Antigüedad: 16 años, 9 meses
Puntos: 3
Re: Código de player 6 no funcionaa en 8

en la LIGA ahi te dice que es lo mismo que el if


The following example shows a conditional statement written in shorthand:

Código:
var timecode:String = (new Date().getHours() < 11) ? "AM" : "PM"; 
trace(timecode); 

The same conditional statement could also be written in longhand, as shown in the following example:

if (new Date().getHours() < 11) { 
 var timecode:String = "AM"; 
} else { 
 var timecode:String = "PM"; 
} trace(timecode);