Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/03/2008, 22:25
Avatar de xyyy7
xyyy7
 
Fecha de Ingreso: enero-2004
Ubicación: Maracay.-
Mensajes: 637
Antigüedad: 22 años, 8 meses
Puntos: 5
Re: guardar posicion de un objeto con SharedObject?

Espero te ayude con esto :
Código PHP:
objetopos_so = SharedObject.getLocal("GUARDAR_POSICION");
 
xx.text = objeto_mc._x = objetopos_so.data.x;
 
yy.text = objeto_mc._y = objetopos_so.data.y;

objeto_mc.onPress = function () {
objeto_mc.startDrag(false,7,26,180,163)
    }
objeto_mc.onRelease = objeto_mc.onReleaseOutside = function(){
   
objeto_mc.stopDrag();
  
    
xx.text = objetopos_so.data.x = objeto_mc._x;
    
yy.text = objetopos_so.data.y = objeto_mc._y;
   
objetopos_so.flush();
} 
MC Instance = objeto_mc
Text Instance = xx , yy

Saludos.-
__________________
Maracay Edo Aragua - Venezuela :
Mi Favorita :
http://www.MySQL.Com