+ Rispondi alla Discussione
Risultati da 1 a 2 di 2

Clicktag come inserirlo?

Ultimo Messaggio di Nhatan il:
  1. #1
    User L'avatar di Aresds
    Data Registrazione
    May 2010
    Messaggi
    64

    Clicktag come inserirlo?

    Ciao ragazzi, mi ritrovo un problema con un clicktag, penso che sia quello di Doubleclick:

    Link_1.addEventListener(MouseEvent.MOUSE_UP, function(event: MouseEvent):
    void { var sURL: String;
    if ((sURL = root.loaderInfo.parameters.clickTAG)) {
    navigateToURL(new
    URLRequest(sURL), "_blank"); }
    }

    ho già il mio bel banner in flash finito.
    Dove integro il clicktag?
    Oltre al link 1 (che dovrebbe essere il nome istanza), devo modificare altro nel codice?

    Cordiali Saluti

  2. #2
    Moderatore
    Data Registrazione
    May 2008
    Località
    Olbia
    Messaggi
    2,643
    Ciao senti a me quel codice da errore prova questo:
    Codice:
    var paramList:Object = this.root.loaderInfo.parameters;
    
    // Listen for the CLICK event on the button clip.
    buttonClip.addEventListener(MouseEvent.CLICK, openURL);
    
    // When the button is clicked then the navigateToURL function will open the
    // specified URL. The function does not accept the URL directly as a String.
    // You need to specify the URL as a URLRequest object.
    function openURL(evtObj:MouseEvent):void {
        var request:URLRequest = new URLRequest(paramList["clickTag"]);
        navigateToURL(request, "_blank");
    }

+ Rispondi alla Discussione

Tag per Questa Discussione

^ Permessi di Scrittura

  • Tu non puoi inviare nuove discussioni
  • Tu non puoi inviare risposte
  • Tu non puoi inviare allegati
  • Tu non puoi modificare i tuoi messaggi
  •  
  • Il codice BB è Attivato
  • Le faccine sono Attivato
  • Il codice [IMG] è Attivato
  • Il codice [VIDEO] è Attivato
  • Il codice HTML è Disattivato
  • Trackbacks Attivato
  • Pingback Attivato
  • Refback Attivato

SEO by vBSEO 3.6.0 PL2 ©2011, Crawlability, Inc.