Visualizzazione dei risultati da 1 a 2 su 2

Discussione: FLASH e FRAMESET

  1. #1
    Utente di HTML.it L'avatar di LVS
    Registrato dal
    Aug 2007
    Messaggi
    1

    FLASH e FRAMESET

    Salve a tutti, è il primo messaggio che vi scrivo. Mi sono appena iscritto per risolvere un problema e, perchè no, seguire questa community attivamente...

    Vi illustro il quesito:
    ho un problema con l'apertura di frames in html da un menu flash che si trova in un frame (top.html) ad un frame differente (content.html)

    Ho provato con questo codice applicato ad un pulsante:

    codice:
    on(release){
    getURL("home.html", "content" );
    }
    e il tutto funziona.

    Ma il problema è che uso uno script che genera il menu e non utilizzo pulsanti ai quli applicare azioni.

    Lo script che uso è questo:

    codice:
    function unDim(menu, page)
    {
        var _l1 = menu;
        var _l2 = _root;
        _l2["primeNav" + _l1].submenu.active = false;
        _l2["primeNav" + _l1].submenu.motionClip.targetY = -250;
        _l2["primeNav" + _l1].submenu.motionClip.speed = 2;
        _l2["primeNav" + _l1].submenu.motionClip.gotoAndPlay(2);
        _l2["primeNav" + _l1].gotoAndStop(1);
        _l2["primeNav" + _l1].submenu["subButton" + page].gotoAndStop(1);
    } // End of the function
    function unDimSub(menu, page)
    {
        _root["primeNav" + menu].gotoAndStop(1);
        _root["primeNav" + menu].submenu["subButton" + page].gotoAndStop(1);
    } // End of the function
    function dimButton(menu, page)
    {
        var _l1 = _root;
        var _l2 = menu;
        unDim(_l1.currentMenu, _l1.currentPage);
        _l1["primeNav" + _l2].submenu.active = true;
        _l1["primeNav" + _l2].submenu.motionClip.targetY = 3;
        _l1["primeNav" + _l2].submenu.motionClip.speed = 2;
        _l1["primeNav" + _l2].submenu.motionClip.gotoAndPlay(2);
        _l1["primeNav" + _l2].gotoAndStop("dimmed");
        _l1.currentMenu = _l2;
        _l1.currentPage = page;
    } // End of the function
    function dimSubButton(menu, page)
    {
        var _l1 = _root;
        var _l2 = menu;
        unDimSub(_l1.currentMenu, _l1.currentPage);
        _l1["primeNav" + _l2].gotoAndStop("dimmed");
        _l1["primeNav" + _l2].submenu["subButton" + page].gotoAndStop("dimmed");
        _l1.currentMenu = _l2;
        _l1.currentPage = page;
    } // End of the function
    fscommand("allowscale", "false");
    if (currentPage == null && currentMenu == null)
    {
        currentMenu = 0;
    } // end if
    levelOneNav = new Array();
    leveloneNav[0] = new Array("L'Azienda", "Mission");
    leveloneNav[1] = new Array("Servizi", "Terotecnologia", "Pavimentazioni", "Airport Pvement", "Catasto");
    leveloneNav[2] = new Array("Tecnologia", "Profilometro", "Flling Wght", "Radar", "Ecodn", "Grip", "Spanditrice", "Sigillatrice", "Vcar");
    leveloneNav[3] = new Array("Contatti", "Le nostre sedi", "Come raggiungerci");
    leveloneNav[4] = new Array("Support", "Area riservata", "Area download", "Help");
    leveloneNav[5] = new Array("Partners", "I nostri partners");
    menus = new Array();
    menus[0] = new Array(null, "mission.html");
    menus[1] = new Array(null, "servizi_terotecn.html", "servizi_pavimentazioni.html", "servizi_air_pavement.html", "servizi_air_pavement.html");
    menus[2] = new Array(null, "tecnologia_profilometro.html", "tecnologia_flling_weight.html", "tecnologia_radar.html", "tecnologia_ecodyn.html", "tecnologia_griptester.html", "tecnologia_scmair.html", "tecnologia_crfco.html", "tecnologia_vcar.html");
    menus[3] = new Array(null, "contatti.html", "contatti.html");
    menus[4] = new Array(null, "support_members.html", "support_download.html", "support_help.html");
    menus[5] = new Array(null, "partners.html");
    zIndex = 10;
    offsetY = 12;
    offsetX = 235;
    for (i = 0; i < levelOneNav.length; i++)
    {
        _root.attachMovie("primeNav", "primeNav" + i, zIndex);
        myButton = _root["primeNav" + i];
        myButton.title = levelOneNav[i][0];
        myButton._width = 95;
        myButton._x = offsetX;
        myButton._y = offsetY;
        myButton.menuNo = i;
        offsetX = offsetX + myButton._width;
        zIndex++;
        myButton.attachMovie("emptyClip", "submenu", 10);
        subXpos = 0;
        for (j = 1; j < levelOneNav[i].length; j++)
        {
            myButton.submenu.attachMovie("subNav", "subButton" + j, j);
            mySub = myButton.submenu["subButton" + j];
            mySub._y = 18 * j;
            mySub.title = levelOneNav[i][j];
            mySub._x = subXpos + 44;
            mySub._width = 175;
            mySub.menuNo = i;
            mySub.pageNo = j;
        } // end of for
        myButton.submenu._y = -250;
    } // end of for


    Grazie a tutti...

  2. #2
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    puoi scrivere l'azione per un MovieClip o Button direttamente su frame, utilizzando questa sintassi

    nome_istanza_pulsante.onPress = function(){
    // azioni
    }

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.