½¨Õ¾Ñ§ - ÇáËɽ¨Õ¾´Ó´Ë¿ªÊ¼£¡

½¨Õ¾Ñ§-¸öÈ˽¨Õ¾Ö¸ÄÏ,ÍøÒ³ÖÆ×÷,ÍøÕ¾Éè¼Æ,ÍøÕ¾ÖÆ×÷½Ì³Ì

µ±Ç°Î»ÖÃ: ½¨Õ¾Ñ§ > ͼÏñÉè¼Æ > Flash½Ì³Ì >

ʹÓÃflashÀ´ÖÆ×÷µç×ÓµØͼ(3)

ʱ¼ä:2011-03-29 22:48À´Ô´: ×÷Õß: µã»÷: ´Î
4¡¢·Å´ó¡¢ËõÐ ¢Í϶¯¡¢»¹Ô­ÉϽڶàÒѾ­½²¹ýÁË£¬µ«Ëæ׏¦ÄܵÄÔö¶à£¬»áÔ½À´Ô½ÂÒ£¬ËùÒÔÎÒÃÇ°Ñ´úÂëͳһÆðÀ´¡£²¢¾¡Á¿°Ñ´úÂëдµ½Ê±¼äÖáÉÏ£¬ÒÔ±ã¹ÜÀíºÍÐ޸ġ£Ê×ÏÈÊdzõʼ»¯µØͼµÄ´úÂëºÍ×Ô¶¨Ò庯Êý£º //Í£Ö¹²¥·Å stop(); //·Å

4¡¢·Å´ó¡¢ËõС¡¢Í϶¯¡¢»¹Ô­ÉϽڶàÒѾ­½²¹ýÁË£¬µ«Ëæ׏¦ÄܵÄÔö¶à£¬»áÔ½À´Ô½ÂÒ£¬ËùÒÔÎÒÃÇ°Ñ´úÂëͳһÆðÀ´¡£²¢¾¡Á¿°Ñ´úÂëдµ½Ê±¼äÖáÉÏ£¬ÒÔ±ã¹ÜÀíºÍÐ޸ġ£Ê×ÏÈÊdzõʼ»¯µØͼµÄ´úÂëºÍ×Ô¶¨Ò庯Êý£º

//Í£Ö¹²¥·Å 
stop(); 
//·Å´ó£¬ËõС£¬»¹Ô­£¬Í϶¯£¬²âÁ¿µÄ¿ØÖƱäÁ¿ 
var chengxu ; 
//ËùÓÐ×ó±ß¹¦ÄÜ°´Å¥µÄ³õʼ»¯º¯Êý£¨°Ñ×ó±ß¹¦ÄÜ°´Å¥¶¼Í£Ö¹ÔÚµÚÒ»Ö¡£© 
function chushi(){ 
       _root.fangda_mc.gotoAndStop(1); 
       _root.suoxiao_mc.gotoAndStop(1); 
       _root.yuantu_mc.gotoAndStop(1); 
       _root.tuodong_mc.gotoAndStop(1); 
       _root.celiang_mc.gotoAndStop(1); 

//³õʼ»¯µØͼº¯Êý£¨°ÑÏȲ»ÒªÏÔʾµÄ¶¼Òþ²Ø£© 
function chushimap(){ 
       _root.map_mc.map2_mc._visible = 0; 
       _root.map_mc.map3_mc._visible = 0; 
       _root.map_mc.map4_mc._visible = 0; 
       _root.map_mc.map5_mc._visible = 0; 

//Ö´Ðгõʼ»¯µØͼº¯Êý£¨°ÑÏȲ»ÒªÏÔʾµÄ¶¼Òþ²Ø£© 
chushimap(); 
//³õʼ»¯¹¦ÄÜÌáʾº¯Êý 
function gongnengtishi(){ 
       _root.fangda_mc.fangda1._visible = 0; 
       _root.suoxiao_mc.suoxiao1._visible = 0; 
       _root.yuantu_mc.yuantu1._visible = 0; 
       _root.tuodong_mc.tuodong1._visible = 0; 
       _root.celiang_mc.celiang1._visible = 0; 

//Ö´Ðгõʼ»¯¹¦ÄÜÌáʾº¯Êý£¨°ÑÌáʾÒþ²Ø£© 
gongnengtishi(); 
//µØͼÇøÓòÏÞÖƺ¯Êý£¨ÏÞÖƵØͼÍÑÀëÆÁÄ»£© 
function xianzhi(){ 
       _root.onEnterFrame = function(){ 
       if(map_mc._x>320*map_mc._xscale/200){map_mc._x=320*map_mc._xscale/200} 
       if(map_mc._x<320-320*map_mc._xscale/200){map_mc._x=320-320*map_mc._xscale/200} 
       if(map_mc._y>240*map_mc._yscale/200){map_mc._y=240*map_mc._yscale/200} 
       if(map_mc._y<240-240*map_mc._yscale/200){map_mc._y=240-240*map_mc._yscale/200} 
       } 

//ÐÅÏ¢µÄÏÔʾºÍÒþ²Øº¯Êý£¨·Å´óÏÔʾºÍËõСÒþ²Ø£© 
function xianshi(){ 
       var dx = _root.map_mc._xscale; 
       if(dx >= 120){ 
              _root.map_mc.map2_mc._visible = 1; 
              if(dx >= 140){ 
                     _root.map_mc.map3_mc._visible = 1; 
                     if(dx >= 160){ 
                            _root.map_mc.map4_mc._visible = 1; 
                            if(dx >= 180){ 
                                   _root.map_mc.map5_mc._visible = 1; 
                            }else{ 
                                   _root.map_mc.map5_mc._visible = 0; 
                            } 
                     }else{ 
                            _root.map_mc.map4_mc._visible = 0; 
                   _root.map_mc.map5_mc._visible = 0; 
                            } 
              }else{ 
                     _root.map_mc.map3_mc._visible = 0; 
               _root.map_mc.map4_mc._visible = 0; 
               _root.map_mc.map5_mc._visible = 0; 
           } 
    }else{chushimap();} 

//²âÁ¿º¯Êý 
function celiang(){ 
var sx, sy; 
_root.map_mc.cl_mc.clear(); 
_root.map_mc.cl_mc.cl_txt.removeTextField(); 
sx = _root.map_mc._xmouse; 
sy = _root.map_mc._ymouse; 
draw = true; 
onMouseMove = function () { 
if (draw) { 
_root.map_mc.createEmptyMovieClip("cl_mc",1); 
_root.map_mc.cl_mc.lineStyle(1, 0x009900, 80); 
_root.map_mc.cl_mc.moveTo(sx, sy); 
_root.map_mc.cl_mc.lineTo(_root.map_mc.cl_mc._xmouse, _root.map_mc.cl_mc._ymouse); 
ttt = Math.floor(Math.sqrt(Math.pow(_root.map_mc.cl_mc._width, 2)+Math.pow(_root.map_mc.cl_mc._height, 2))); 
_root.map_mc.cl_mc.createTextField("cl_txt",1, _root.map_mc.cl_mc._xmouse, _root.map_mc.cl_mc._ymouse-22, 100, 22); 
_root.map_mc.cl_mc.cl_txt.text = ttt +" m"; 

}; 
onMouseUp = function () { 
draw = false; 

}; 

5¡¢Map_mc¹¦ÄܵĴúÂëÈçÏ£¨map_mc µÄËùÓй¦ÄÜ£©£º

_root.map_mc.onPress = function(){ 
       if(chengxu == "fangda"){ 
              if(_root.map_mc._xscale < 200){ 
              _root.map_mc._xscale += 10; 
              _root.map_mc._yscale += 10; 
              xianshi(); 
              } 
       } 
       else if(chengxu == "suoxiao"){ 
              if(_root.map_mc._xscale > 100){ 
              _root.map_mc._xscale -= 10; 
              _root.map_mc._yscale -= 10; 
              xianshi(); 
              } 
       } 
       else if(chengxu == "yuantu"){ 
              _root.map_mc._xscale = 100; 
              _root.map_mc._yscale = 100; 
              _root.map_mc._x = 160; 
              _root.map_mc._y = 120; 
              chushimap(); 
       } 
       else if(chengxu == "tuodong"){ 
              startDrag(_root.map_mc,false); 
              xianzhi(); 
       } 
       else if(chengxu == "celiang"){ 
              celiang(); 
       } 

_root.map_mc.onRelease = function(){ 
       stopDrag(); 

6¡¢×ó±ß¹¦ÄÜ°´Å¥µÄ¹¦ÄÜ´úÂë¼´¹¦ÄÜÌáʾ´úÂ룺 

//leftµÄ¹¦ÄÜ´úÂë 
fangda_mc.onPress = function(){ 
       chushi(); 
       _root.fangda_mc.gotoAndStop(2); 
       chengxu = "fangda"; 

suoxiao_mc.onPress = function(){ 
       chushi(); 
       _root.suoxiao_mc.gotoAndStop(2); 
       chengxu = "suoxiao"; 

yuantu_mc.onPress = function(){ 
       chushi(); 
       _root.yuantu_mc.gotoAndStop(2); 
       chengxu = "yuantu"; 

tuodong_mc.onPress = function(){ 
       chushi(); 
       _root.tuodong_mc.gotoAndStop(2); 
       chengxu = "tuodong"; 

celiang_mc.onPress = function(){ 
       chushi(); 
       _root.celiang_mc.gotoAndStop(2); 
       chengxu = "celiang"; 

//leftµÄ¹¦ÄÜÌáʾ´úÂë 
fangda_mc.onRollOver = function(){ 
       _root.fangda_mc.fangda1._visible = 1; 

suoxiao_mc.onRollOver = function(){ 
       _root.suoxiao_mc.suoxiao1._visible = 1; 

yuantu_mc.onRollOver = function(){ 
       _root.yuantu_mc.yuantu1._visible = 1; 

tuodong_mc.onRollOver = function(){ 
       _root.tuodong_mc.tuodong1._visible = 1; 

celiang_mc.onRollOver = function(){ 
       _root.celiang_mc.celiang1._visible = 1; 

fangda_mc.onRollOut = function(){ 
       _root.fangda_mc.fangda1._visible = 0; 

suoxiao_mc.onRollOut = function(){ 
       _root.suoxiao_mc.suoxiao1._visible = 0; 

yuantu_mc.onRollOut = function(){ 
       _root.yuantu_mc.yuantu1._visible = 0; 

tuodong_mc.onRollOut = function(){ 
       _root.tuodong_mc.tuodong1._visible = 0; 

celiang_mc.onRollOut = function(){ 
       _root.celiang_mc.celiang1._visible = 0; 

    µ½Ä¿Ç°ÎªÖ¹£¬ÎÒÃÇʵÏÖÁË×î»ù×î±¾µØͼµÄ¹¦ÄÜ£¬µ«»¹²»ÄÜÔÚʵ¼ÊÖÐÓ¦Óᣴó¼ÒÖªµÀµØͼµÄÊý¾ÝÁ¿ÊǺܴóµÄ£¬ÎÒÃDz»¿ÉÄܶ¼Ð´µ½flashÀï¡£ËùÒÔÎÒÃÇÐèÒª°ÑËùÓеÄÊý¾Ýдµ½Êý¾Ý¿âÀ¶¯Ì¬µÄ´ÓÊý¾Ý¿âµ÷ÄãÏëÒª¿´µ½»ò²éÕÒµÄÄÚÈÝ¡£Õâ¾ÍÊÇÎÒÃÇϽڿεÄÄÚÈÝÁË¡£
ÒÔÉϾÍÊǽñÌìҪѧϰµÄÖ÷ÒªÄÚÈÝÁË£¬µ±È»´úÂëûÓÐÓÅ»¯£¬ÎªÁË´ó¼ÒÄÜ¿´µÄ¸üÖ±½Ó¡£Ö»ÊÇÓÃ×î»ù±¾µÄ´úÂëʵÏÖÁË»ù±¾µÄ¹¦ÄÜ¡£µ±È»Ò²ÄÑÃâÓдíÎó»òÒÅ©µÄµØ·½£¬»¹Çë´ó¼Ò¸øÓèÖ¸Õý¡£»¶Ó­´ó¼ÒÒ»Æð½»Á÷̽ÌÖ¡£

(ÔðÈα༭£ºadmin)
Ö¯ÃζþάÂëÉú³ÉÆ÷
¶¥Ò»ÏÂ
(0)
0%
²ÈÒ»ÏÂ
(0)
0%
------·Ö¸ôÏß----------------------------
·¢±íÆÀÂÛ
Çë×Ô¾õ×ñÊØ»¥ÁªÍøÏà¹ØµÄÕþ²ß·¨¹æ£¬ÑϽû·¢²¼É«Çé¡¢±©Á¦¡¢·´¶¯µÄÑÔÂÛ¡£
ÆÀ¼Û:
񡀂:
Óû§Ãû: ÑéÖ¤Âë:µã»÷ÎÒ¸ü»»Í¼Æ¬