Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/06/2002, 13:05
jasistemas
 
Fecha de Ingreso: mayo-2001
Mensajes: 452
Antigüedad: 23 años
Puntos: 1
Re: Como hacer esto ??

Si se trata de seleccionar texto, al menos en MX existe un objeto selection que te permite saber donde esta el foco, recolocarlo o saber la parte seleccionada de texto o establecer una seleccion sobre un texto.... tomado del dictionary:
Selection (object)

The Selection object lets you set and control in which text field the cursor is located in a Flash movie. The text field that is said to have "focus" is the field in which the cursor is currently located. Selection-span indexes are zero-based (for example, the first position is 0, the second position is 1, and so on).

There is no constructor method for the Selection object, as there can only be one currently focused field at a time.



Selection.setSelection

Availability


Flash Player 5.

Usage


Selection.setSelection(start, end)
Parameters


start The beginning index of the selection span.

end The ending index of the selection span.

Returns


Nothing.

Description


Method; sets the selection span of the currently focused text field. The new selection span will begin at the index specified in the start parameter, and end at the index specified in the end parameter. Selection span indexes are zero-based (for example, the first position is 0, the second position is 1, and so on). This method has no effect if there is no currently focused text field.