Visualizzazione dei risultati da 1 a 4 su 4

Discussione: problemino menu xml

  1. #1

    problemino menu xml

    ciao a tutti
    ho un problema con il mio menu flash/xml
    come faccio ad associare contemporaneamente a un tasto del menu sia una
    funzione di Mouseover (che fa partire un mc) che quella di un Click (che fa
    partire un secondo mc?)

    grazie in anticipo!


    questo e' il codice dell'xml:

    <menu>
    <item name="menu1">
    <sub id="1" name="Tiger" m_function="" instance="" enabled="1">
    <param value=""></param>
    </sub>
    </item>
    <item name="menu2">
    <sub id="2" name="Falcon" m_function="" instance="" enabled="1">
    <param value="---"></param>
    </sub>
    </item>
    <item name="menu3">
    <sub id="3" name="Condor" m_function="" instance="" enabled="1">
    <param value=""></param>
    </sub>

    </menu>
    Consegna a domicilio - La spesa online direttamente a casa Tua.

  2. #2
    non mi sono spiegato bene forse o non e' una cosa semplice?
    Consegna a domicilio - La spesa online direttamente a casa Tua.

  3. #3
    uppino

    questo e' il codice all'interno del componente flash...probabilmente e' questo dacambiare...mi potreste dare una mano?

    #initclip
    function MListClass() {
    this.over == false;
    this.index = 0;
    this.updated = false;
    this.is_hiding = false;
    this.sm._visible = false;
    }
    MListClass.prototype = new MovieClip();
    MListClass.prototype.update = function() {
    if (this.over == true) {
    if (this.updated == false) {
    clearInterval(this.t_timer);
    this.updated = true;
    this.showItems();
    if (this.index<this.m_items.length-1) {
    this.t_timer = setInterval(this, "showItems",
    this._parent.showDelay);
    }
    }
    }
    };
    MListClass.prototype.showItems = function() {
    this.index++;
    this.attachMovie("MButton", "sm_"+this.index, this.index,
    {_x:this.sm_0._x, _y:this.sm_0._y+18.5*this.index,
    m_text:this.m_items[this.index][0], m_function:this.m_items[this.index][1],
    m_thisObject:this.m_items[this.index][2],
    m_parameters:this.m_items[this.index][3],
    m_state:this.m_items[this.index][4]});
    this["sm_"+(this.index)].m_btnMovie.gotoAndPlay("show");
    if (this.index == this.m_items.length-1) {
    clearInterval(this.t_timer);
    }
    updateAfterEvent();
    };
    MListClass.prototype.init = function(m_btns) {
    this.m_items = m_btns;
    this.attachMovie("MButton", "sm_0", 100, {_x:this.sm._x, _y:this.sm._y,
    m_text:this.m_items[0][0], m_function:this.m_items[0][1],
    m_thisObject:this.m_items[0][2], m_parameters:this.m_items[0][3],
    m_state:this.m_items[0][4]});
    };
    MListClass.prototype.getAt = function(index) {
    return this["sm_"+index];
    };
    MListClass.prototype.getDataAt = function(index) {
    return this["sm_"+index];
    };
    MListClass.prototype.setDataAt = function(index, value) {
    this.m_items[index] = value;
    this.update();
    };
    MListClass.prototype.removeAt = function(index) {
    this.m_items.splice(index, 1);
    this.update();
    };
    MListClass.prototype.hide = function() {
    clearInterval(this.interval);
    clearInterval(this.t_timer);
    this.hideItems();
    if (this.index>0) {
    this.t_timer = setInterval(this, "hideItems",
    this._parent.hideDelay);
    }
    this.updated = false;
    };
    MListClass.prototype.hideItems = function() {
    this["sm_"+this.index].m_btnMovie.gotoAndPlay("hide");
    this.index--;
    if (this.index == 0) {
    clearInterval(this.t_timer);
    this.is_hiding = false;
    }
    updateAfterEvent();
    };
    MListClass.prototype.setItems = function(items) {
    this.m_items = items;
    this.update();
    };
    MListClass.prototype.getItems = function() {
    return (this.m_items);
    };
    MListClass.prototype.addProperty("items", function () { return
    this.getItems();}, function (v) { this.setItems(v);});
    MListClass.prototype.setEnabled = function(value) {
    this.getAt(0).enabled = 0;
    this.update();
    };
    MListClass.prototype.getEnabled = function() {
    return (this.m_items[0].enabled);
    };
    MListClass.prototype.addProperty("enabled", function () { return
    this.getEnabled();}, function (v) { this.setEnabled(v);});
    Object.registerClass("MList", MListClass);
    #endinitclip
    Consegna a domicilio - La spesa online direttamente a casa Tua.

  4. #4
    uppino
    Consegna a domicilio - La spesa online direttamente a casa Tua.

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 © 2025 vBulletin Solutions, Inc. All rights reserved.