做了個(gè)flash對(duì)mc移動(dòng)的控制,代碼很簡(jiǎn)單:)
更新時(shí)間:2007年01月23日 00:00:00 作者:
復(fù)制代碼 代碼如下:
里面創(chuàng)建了4個(gè)MC,分別是zzcn_top_mc zzcn_end_mc zzcn_left_mc zzcn_right_mc .
很簡(jiǎn)單的。。大家可以參考下哦。。呵呵。。
var place_x:Number = _xmouse;
var place_y:Number = _ymouse;
var sulv:Number = 6;
zzcn_top_mc.onEnterFrame = function(){
this._x += (place_x - this._x)/sulv;
place_x = _xmouse;
};
zzcn_end_mc.onEnterFrame = function(){
this._x += (place_x - this._x)/sulv;
place_x = _xmouse;
};
zzcn_left_mc.onEnterFrame = function(){
this._y += (place_y - this._y)/sulv;
place_y = _ymouse;
};
zzcn_right_mc.onEnterFrame = function(){
this._y += (place_y - this._y)/sulv;
place_y = _ymouse;
};
http://www.zzcn.net/blog/attachments/month_0612/l2006121018639.swf
相關(guān)文章
FLASH與ASP通信入門(mén)教程——做真正屬于自己的留言本
FLASH與ASP通信入門(mén)教程——做真正屬于自己的留言本...2006-12-12FLASH 多參數(shù)的URL地址(帶&符號(hào))
FLASH 多參數(shù)的URL地址的處理技巧。2009-05-05利用asp或jsp,flash怎樣把數(shù)據(jù)庫(kù)中的一張表中的所有記錄讀取并顯示出來(lái)
利用asp或jsp,flash怎樣把數(shù)據(jù)庫(kù)中的一張表中的所有記錄讀取并顯示出來(lái)...2006-11-11使用 AllowNetworking Flash的世界安靜了
使用 AllowNetworking Flash的世界安靜了...2007-03-03