clickTag

 3.0 //////////////////////////////////// clickTag ////////////////////////////////////

    import com.FPI.utils.PopupWin;
    hotspot.buttonMode=true;
    hotspot.mouseChildren=false;
    hotspot.addEventListener(MouseEvent.CLICK,hotspotClick);

 
   

    function hotspotClick($e:MouseEvent):void{
      for (var i:String in root.loaderInfo.parameters){
        if (i.toLowerCase() == "clicktag"){
          var url = root.loaderInfo.parameters[i];
          PopupWin.getInstance().openWindow(url);
          return;
        }
      }
    }

   需要PopupWin这个类。下载地址:http://support.google.com/richmedia/bin/answer.py?hl=zh-Hans&answer=188094

 

 2

 //////////////////////////////////// clickTag ////////////////////////////////////

   hotspot.onRelease = function()

   {    

       getURL (clickTag, "_blank");

   }

  or google did:

  
  on (release) {       

            if (clickTAG.substr(0,5) == "http:") {       

              getURL(clickTAG, "_blank");}

      }
  }

你可能感兴趣的:(click)