Hola Lista
Es posible conectar mediante LocalConnection 2 peliculas con una receptora es
decir 3 peliculas.
Mi código es el siguiente pero sólo me funciona con una película(cuando intento
conectar las 2 con la receptora ya no funciona nada)
Código de la pelicula receptora:
SWF 1:
myReceiver = new LocalConnection();
myReceiver.connect("myConnections");
myReceiver.myAction = function(doThis) {
if (doThis == 1) {
_root.sanacion_mv.gotoAndStop(2);
} else if (doThis == 2) {
_root.sanacion_mv.gotoAndStop(1);
}
};
myReceiver2 = new LocalConnection();
myReceiver2.connect("myConnections2");
myReceiver2.myAction2 = function(doThis) {
if (doThis == 3) {
_root.mensajes.gotoAndStop(2);
} else if (doThis == 4) {
_root.mensajes.gotoAndStop(1);
}
};
Código de las películas que envian :
SWF 2:
_root.sanacion.onRelease = function() {
getURL("http://www.miweb.com/sanacion/index.html", "_self");
};
_root.mySender = new LocalConnection();
_root.sanacion.onRollOver = function() {
_root.mySender.send("myConnections", "myAction", 1);
};
_root.sanacion.onRollOut = function() {
_root.mySender.send("myConnections", "myAction", 2);
};
SWF 3:
_root.payaso.onRelease = function() {
getURL("http://www.miweb.com/cartas_amigas/index.php", "_self");
};
_root.mySender2 = new LocalConnection();
_root.payaso.onRollOver = function() {
_root.payaso.gotoAndStop(2);
_root.mySender2.send("myConnections2", "myAction2", 3);
};
_root.payaso.onRollOut = function() {
_root.mySender2.send("myConnections2", "myAction2", 4);
_root.payaso.gotoAndStop(1);
};
Espero que me saqueis de dudas pués me estoy rompiendo la cabeza con una cosa
que no sé si es posible
Gracias a todos
Gabi
-----------------------------------------------------
ASNativos
www.5dms.com
subscripciones/desubscripciones
http://asnativos.5dms.com
-----------------------------------------------------