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");}
      }
  }
posted @ 2012-10-27 10:53  雅尸兰黛?窃笑  阅读(159)  评论(0编辑  收藏  举报