zoukankan      html  css  js  c++  java
  • 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");}
          }
      }
  • 相关阅读:
    datatime模块
    快速幂
    | 与|| ,& 与&&
    sql----order by
    pandas iterrows()
    黄包车比赛 python学习
    右键git-bash不能使用
    17flask分页
    16flask错误处理
    15跨站请求伪造
  • 原文地址:https://www.cnblogs.com/1000pen/p/2742202.html
Copyright © 2011-2022 走看看