我的订单|我的收藏|我的商城|帮助中心|返回首页
虚拟现实新闻>VR>行业资讯>技术专区

Flash与webmax的交互控制 教程源码

文章来源:上海创图网络科技发展有限公司 作者:Frank 发布时间:2010年10月11日 点击数: 字号:
    2、鼠标移动事件

 

    首先在 function SceneIsDown()里面加:

 

    设置模型是否响应鼠标事件,包括鼠标停靠与单击。

 

    VGS2.SetModelMouseHintmodename,1);

 

    接着设置鼠标移动回调函数:VGS2.EnableMouseMoveCallback();

 

    新建鼠标移动处理函数

 

        function function VGSMouseMove(LocH, LocV, type, modelUnderLoc )

 

     {

 

     if (type == 1)//表示移动上模型时

 

            {

 

                 switch (modelUnderLoc)//根据模型的名字来识别

 

               {

 

          Case  modename: 

共13页 您在第8页 首页 上一页 3 4 5 6 7 8 9 10 11 12 13 下一页 尾页 跳转到页 本页共有3499个字符
  • 暂无资料
  • 暂无资料
  • 暂无资料
  • 暂无资料
  • 暂无资料