Buenas no quise abrir un nuevo tema, y más o menos viene al caso. Estoy haciendo un portafolios en flash, soy diseñador gráfico, pero de desarrollo en flash, estoy demasiado verde. Me estoy poniendo a ello, buscando en foros y demas, pero no soy capaz de solucionar este problema. Tengo unos botones, con unos addListenerEvent, q no me funcionan. Los botones estan dentro de un MC, y les marco la ruta de acceso bien y no me hacen el gotoandStop q les pido. Saco los botones del MC, y lo pongo en el escenario y si me hacen el gotoandStop (cambiando la ruta de dnd esta el boton obviamente ). No tengo problemas con otros dos addListenerEvent, q hago en el fotograma1 del escenario y me hacen perfectas las funciones, y estan en el mismo MC q los botones q no me hacen ni p... caso. Bueno os dejo el codigo, y comentamos a ver q puede ser.
Código ActionScript :
this._cab.menu_cab.addEventListener ( MouseEvent.ROLL_OVER, goto_on);
this._cab.inactivo.addEventListener ( MouseEvent.ROLL_OVER, goto_off);
this._cab.gallery_button1.addEventListener( MouseEvent.CLICK, goto_gallery1 );
this._cab.gallery_button2.addEventListener( MouseEvent.CLICK, goto_gallery2 );
this._cab.gallery_button3.addEventListener( MouseEvent.CLICK, goto_gallery3 );
this._cab.gallery_button4.addEventListener( MouseEvent.CLICK, goto_gallery4 );
function goto_on(e:MouseEvent):void{
this._cab.gotoAndPlay ( "on")
}
function goto_off(e:MouseEvent):void{
this._cab.gotoAndPlay ( "off")
}
function goto_gallery1(e:MouseEvent):void {
gotoAndStop("g1");
}
function goto_gallery2(e:MouseEvent):void {
gotoAndStop("g2");
}
function goto_gallery3(e:MouseEvent):void {
gotoAndStop("g3");
}
function goto_gallery4(e:MouseEvent):void {
gotoAndStop("g4");
}
var fondo:MovieClip = new MovieClip();
addChildAt(fondo,0);
var load_fondo:Loader = new Loader();
load_fondo.load(new URLRequest("fond.jpg"));
fondo.addChild(load_fondo);
fondo.x=150;
fondo.y= 138;
fondo.alpha=0.3;
var load_cab:Loader = new Loader();
load_cab.load(new URLRequest("cab.jpg"));
this._cab.rect_cab.addChild(load_cab);
stop();Un saludo y un millon de gracias, un poco de paciencia q estoy empezando