El tema esta cuando cargo la pagina, el menu tendria que aparecer con el bot1 activado. Que me esta faltando en el codigo?
1 frame tengo los movie clip y las acciones.
Donde id es la variable que uso para saber si esta activado o no el boton, si lo esta, no muestra el roolover.
muchas Graciasss
Código HTML:
//------------------------- BOTON 1 -------------------------
bot1.onRollOver = function() {
bot1.onEnterFrame = function () {
if (bot1._currentframe != 20) {
bot1.nextFrame();
}else{
bot1.stop();
delete this["onEnterFrame"];
}}}
bot1.onRollOut = function() {
bot1.onEnterFrame = function () {
if ( id != "1"){
if (bot1._currentframe != 1) {
bot1.prevFrame();
}else{
bot1.stop();
delete this["onEnterFrame"];
}}}}
bot1.onPress = function() {
//getURL("?id=1","mainFrame","get");
id = 1;
}
//------------------------- BOTON 2 -------------------------
bot2.onRollOver = function() {
bot2.onEnterFrame = function () {
if (bot2._currentframe != 20) {
bot2.nextFrame();
}else{
bot2.stop();
delete this["onEnterFrame"];
}}}
bot2.onRollOut = function() {
bot2.onEnterFrame = function () {
if ( id != "2"){
if (bot2._currentframe != 1) {
bot2.prevFrame();
}else{
bot2.stop();
delete this["onEnterFrame"];
}}}}
bot2.onPress = function() {
//getURL("?id=1","mainFrame","get");
id = 2;
}

