Encontre un código que hace un menú dinamico que me carga uno links
Pero yo deso que me vaya a la línea de tiempo a diferentes fotogramas
Cita:
Que debo agregar para ir a distintos fotogramas en vez de cargar links?/
stop();
//
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
//
var menu_array:Array = new Array();
menu_array.push({label:"Nombre 1",ver:"uno.html"});
menu_array.push({label:"Nombre 2",ver:"dos.html"});
menu_array.push({label:"Nombre 3",ver:"tres.html"});
menu_array.push({label:"Nombre 4",ver:"cuatro.html"});
var bt;
var posX=150;
var posY=150;
//
for (var i:int; i < menu_array.length; i++) {
bt = this.addChild(new btMenu());
bt.x = posX;
bt.y = posY;
bt.campo_txt.text=menu_array[i].label;
bt.mouseChildren=false;
bt.link=menu_array[i].ver;
bt.buttonMode=true;
bt.addEventListener(MouseEvent.CLICK,handleClick);
bt.addEventListener(MouseEvent.MOUSE_OVER,handleMo useOver);
bt.addEventListener(MouseEvent.MOUSE_OUT,handleMou seOut);
//posX += bt._back.width+1;
posY+=bt._back.height+10;
}
function handleMouseOver(e:MouseEvent) {
e.target._back.gotoAndPlay(2);
}
function handleMouseOut(e:MouseEvent) {
e.target._back.gotoAndPlay(11);
}
function handleClick(e:MouseEvent) {
navigateToURL(new URLRequest(e.target.link));
}
stop();
//
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
//
var menu_array:Array = new Array();
menu_array.push({label:"Nombre 1",ver:"uno.html"});
menu_array.push({label:"Nombre 2",ver:"dos.html"});
menu_array.push({label:"Nombre 3",ver:"tres.html"});
menu_array.push({label:"Nombre 4",ver:"cuatro.html"});
var bt;
var posX=150;
var posY=150;
//
for (var i:int; i < menu_array.length; i++) {
bt = this.addChild(new btMenu());
bt.x = posX;
bt.y = posY;
bt.campo_txt.text=menu_array[i].label;
bt.mouseChildren=false;
bt.link=menu_array[i].ver;
bt.buttonMode=true;
bt.addEventListener(MouseEvent.CLICK,handleClick);
bt.addEventListener(MouseEvent.MOUSE_OVER,handleMo useOver);
bt.addEventListener(MouseEvent.MOUSE_OUT,handleMou seOut);
//posX += bt._back.width+1;
posY+=bt._back.height+10;
}
function handleMouseOver(e:MouseEvent) {
e.target._back.gotoAndPlay(2);
}
function handleMouseOut(e:MouseEvent) {
e.target._back.gotoAndPlay(11);
}
function handleClick(e:MouseEvent) {
navigateToURL(new URLRequest(e.target.link));
}
Gracias por su ayuda