Comunidad de diseño web y desarrollo en internet online

PROBLEMA CON MENU EN FLASH

Citar            
MensajeEscrito el 25 Sep 2008 05:05 pm
buenas tardes a todos, tengo el siguiente problema: descargue un menú y me anda bárbaro.
Mi problema esta en que solo le puedo hacer vínculos a los subitems y no se hacer el vinculo a los botones principales. (menuitems)

les dejo el link si me pueden ayudar estaría muy agradecida.

link: http://www.actionscript.org/resources/articles/8/1/Dynamic-menu-with-submenus/Page1.html

en las accciones tengo:

Código :

//initialize main menu
for (i=1; i<=_root.total; ++i) {
//duplicate movie clip
menuMC.duplicateMovieClip("menuMC"+i, i);
//set new position
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
this["menuMC"+i].choice = i;
//create a variable to record the levels of the created MCs
levelTrack = i;
}
//initialize submenu by creating and positioning movie clips
for (i=1; i<=_root.total; ++i) {
//check to see if the item has a submenu
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
levelTrack += 1;
subMenuMC.duplicateMovieClip(name+n, levelTrack);
this[name+n]._visible = false;
this[name+n].choice = (i*10) + n;
}
//position first submenu item under parent
this[name+1]._y = this["menuMC"+i]._y+this["menuMC"+i]._height;
//position rest of submenu items
for (n=2; n<=_root["subText"+i]; ++n) {
this[name+n]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
}
}
}

//hide all the submenu items and return the main menu items to their start position
function resetMenu() {
for (i=1; i<=_root.total; ++i) {
if (_root["subText"+i]>=1) {
name = "stext"+i;
for (n=1; n<=_root["subText"+i]; ++n) {
this[name+n]._visible = false;
}
}
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
// called by clicking themain menu buttons, this shows the submenu andmoves the main menu buttons to give them space
function submenuShow() {
resetMenu();
if (_root["subText"+choice]>=1) {
name = "stext"+choice;
for (n=1; n<=_root["subText"+choice]; ++n) {
this[name+n]._visible = true;
}
this["menuMC"+(choice+1)]._y = this[name+(n-1)]._y+this[name+(n-1)]._height;
for (i=choice+2; i<=_root.total; ++i) {
this["menuMC"+i]._y = this["menuMC"+(i-1)]._y+this["menuMC"+(i-1)]._height;
}
}
}


en el sub item:

Código :

on (release) {
myURL = eval("_root.urls"+choice);
if(myURL != null){
getURL(myURL);
}
}



[url=20]EN LAS ACCIONES PRINCIPALES DEL MENU [/url]

Código :


//to be replaced by extrenal text file.
//menu items
total = 10;
text1 = "Empresa";
text2 = "Puntos de Venta";
text3 = "Contacto";

//submenus
subText1 = 2;
stext11 = "La empresa";
urls11 = "empresa2.html";
stext12 = "La empresa1";
urls12 = "empresa1.html";

subText3 = 2;
stext31 = "Contacto";
urls31 = "formulario.html";
stext32 = "Newsletter";
urls32 = "newsletter.html";
stop();


AQUI ES DONDE ESTA MI DUDA QUE NO SE RELACIONAR EL MENU ITEM CON UN VINCULO SI EL SUBITEM PERO EL MENU ITEM NOSE PORQUE EL CODIGO HACE REFERENCIA SOLO AL MENU ITEM, AL MENOS ES LO QUE ENTIENDO YO.

Por web_

11 de clabLevel



 

firefox
Citar            
MensajeEscrito el 25 Sep 2008 05:51 pm
No hace falta que repitas posts

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.