asi fue como quedo el codigo;

        supaventura.play();
        supcultura.gotoAndStop(1);
        supecoturismo.gotoAndStop(1);
        supgastronomia.gotoAndStop(1);
        suphistoria.gotoAndStop(1);

conosco la programacion c y la POO en c++ pero no se aplicarla en flash por 
medio del actionScrip, tengo el sig fla de menus por  medio de codigo pero 
no lo comprendo del todo:

primer fotograma:  (entendible)

fscommand ("allowscale", false);

/*
********************************************
        creating menu and child values
        ----------------------------------------

        Add your menu like below.
        Create your array ( named mymenu1.. mymenu2...) for each main menu.
        The first value of the array is the Title for the menu label
        All the other values are the submenu links, and their label
        ("portfolio.html" is the link for the "portfolio" label in the submenu)
        ------------------------------------------------------------------------


********************************************
*/


mymenu1 = new Array("chi siamo", "progetti.html", "lavori.htm", 
"cazzate.php", "portfolio.html");
mymenu2 = new Array("cosa facciamo", "hosting.html", "design.asp");
mymenu3 = new Array("dove siamo", "vieni da noi.html", "mappa.xml", 
"indirizzi.html");
mymenu4 = new Array("Servizi", "hosting.html", "design.xml", 
"multimedia.html", "web.asp");


// target window for links
window = "_blank";


x_iniz = 60             // Menu starting X point
y_iniz = -7             // submenu starting y point
x_diff = 91             // Menu width
y_diff = 15             // submenu height
timeout = 20    // delay closing timeout (for submenu) (30 = 1 sec at 30 fps)

segundo fotograma: (no entendible)

stop();
// build menu
k = 0
for (a in _root){
        if(a.substring(0,6) == "mymenu"){
                if(typeof(_root[a]) == "object"){
                        i++
                }
        }
}
for(var b=1;b<=i;b++){
        _root.attachMovie("menu","menu"+b, 10000 + b)
        _root.attachMovie("contenitore","dummy"+b, 11000 + b);
        my1 = _root["menu"+b]
        my1._x = x_iniz
        my1._y = 20
        cont = _root["dummy" + b]
        cont._x = x_iniz
        cont._y = my1._y + 7
        x_iniz += x_diff
        titolo = _root["mymenu"+b][0]
        titolo =titolo.toUpperCase();
        my1.txt = titolo
        for(h = 1; h < _root["mymenu"+b].length ; h++){
                cont.attachMovie("submenu","sub" + y, 12000 + y);
                my2 = cont["sub"+ y]
                my2._y = y_iniz +(h*y_diff)
                testo = _root["mymenu"+b][h].split('.')
                my2.txt = testo[0]
                my2.url = _root["mymenu"+b][h]
                y++
        }
}

hojala puedan ayudarme a comprender el codigo de este uiltimo fotograma

>From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 
>"flashmaestro List Member" [EMAIL PROTECTED] Subject: 
>[flashmaestro] >> supmenus en flash << Date: Tue, 09 Jul 2002 09:56:58 
>+0200
>
>
>Vale, ahora entiendo el correo. Por favor, no envies tus correos con 
>formato HTML, solo con formato plano.
>
>Para evitar que se superpongan tendr�as que apagar el men� activo antes de 
>encender el nuevo.
>
>
>Teniendo en cuenta las ordenes que utilizas en el bot�n 1:
>
>on (release) { tellTarget ("/supaventura") { play(); } }
>
>Yo pondr�a esto:
>
>on (release) { tellTarget ("/supcultura") { gotoAndStop(1); } tellTarget 
>("/supecoturismo") { gotoAndStop(1); } tellTarget ("/supaventura") { 
>play(); }
>
>}
>
>No lo he completado pero lo que hace es lo siguiente. ya que los menus los 
>tienes dentro de clips y los pones en funcionamiento con un play, pon todos 
>los que tengan que estar cerrados en gotoAndStop(1);, as� se cerrar� el que 
>este abierto y te dejar� espacio al nuevo
>
>Un consejo.... bueno, varios......... Usa la sintaxis nueva........... la 
>orden:: on (release) { tellTarget ("/supcultura") { gotoAndStop(1); }
>
>}
>
>Te quedar� de esta forma: on(release){ supcultura.gotoAndStop(1); } Es 
>decir, olvidate del Tell Target, da las ordenes directamente poniendo 
>primero el nombre de instancia del clip
>
>�Como vas con el tema variables y Functions?............ porque tu men� se 
>puede hacer de otra forma, imaginate que usando el metodo que te he dicho, 
>en vez de tener 6 botones tienes 200.....
>
>Felipe Alonso Administrador de FlashMaestro

_________________________________________________________________
Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com

Attachment: menu.zip
Description: Zip compressed data

Responder a