Código ActionScript :
btlink = [""];
conteudo = new XML();
conteudo.ignoreWhite = true;
conteudo.onLoad =function (success) {
if(success) {
for (var x = 0; x < _root.conteudo.firstChild.childNodes.length; x++) {
btlink.push(_root.conteudo.firstChild.childNodes[x].attributes.link)
trace(_root.conteudo.firstChild.childNodes[x].attributes.link)
}
}
}
// Parametros espacio de accion
anchoPelicula = 600;
altoPelicula = 60;
acel = 8;
iniciado = true;
// Operaciones velocidad
fondo_mc._width=anchoPelicula;
fondo_mc._height=altoPelicula;
fondo_mc._x=0;
fondo_mc._y=0;
acel /= 80;
panoramica_mc._y = 0;
panoramica2_mc._y = 0;
mitad = anchoPelicula/2;
ancho = panoramica_mc._width;
panoramica_mc._x = 0;
panoramica2_mc._x = (0-ancho);
// Al pasar el mouse encima
fondo_mc.onRollOver = function() {
iniciado = false;
mover();
}
fondo_mc.onRollOut = function() {
//delete panoramica_mc.onEnterFrame;
}
// Funcion Mover
function mover() {
barraqueanda();
panoramica_mc.onEnterFrame = function() {
//trace("grandao dando role em: "+ _root.panoramica_mc._x);
//anda2();
if (_xmouse != mitad) {
if (_xmouse<mitad && _ymouse < 90) {
if(panoramica_mc._x < 0) {
inc = Math.abs(_xmouse-mitad)*(acel/3);
//
panoramica_mc._x += inc;
}
} else {
inc = Math.abs(_xmouse-mitad)*(acel/3);
if (panoramica_mc._x>(-7950.4) && _ymouse < 90) {
panoramica_mc._x -= inc;
}
}
}
}
}
init();
function init() {
barraqueanda();
this.onEnterFrame = function() {
if (iniciado) {
if (panoramica_mc._x>(-3850.4)) {
panoramica_mc._x -= 1.8;
}
}else{
delete this.onEnterFrame;
}
}
}
maior = _root.panoramica_mc._width;
menor = _root.slider._width;
desl = maior - Stage.width +20;
var prop = desl / menor;
function anda(obj, lugar){
//trace("movendo " + obj._name + " para " + parseInt(lugar));
obj._x = lugar;
}
function barraqueanda() {
_root.slider.bar.onEnterFrame = function() {
this._x = (_root.panoramica_mc._x / 5.5) *-1;
}
}Espero respuestas, disculpas por el choclo de action script.
Saludos.
Ale.
