Re: [問題] 隨滑鼠移動的跑馬燈?

看板Flash作者 (牧楓蝶)時間19年前 (2006/11/07 21:02), 編輯推噓4(401)
留言5則, 2人參與, 最新討論串2/4 (看更多)
※ 引述《turgo (這一切都是個謎)》之銘言: : 我想做像此網頁下方FLASH的效果 : http://gtasia.com.tw/specialist.html : 我太笨了~想不出來 是將每一個物件設成按鈕嗎? : 要用Action Scrip?怎麼寫? : 緊急求救!! : 可以將我所有的P幣提供給詳細解答的人 : (不過要教我怎麼給) : 感激不盡~ 原始碼 把按鈕影片命名成strip,就是存成同一個按鈕長條那個 然後拉到場景上 ,點選f9之後把這段貼上就好了 onClipEvent (load) { percent_increment = .08; addstrip2 = false; } onClipEvent (enterFrame) { this._x += (_root._xmouse-320)*percent_increment; if (this._x<=0 && this._x>=-this._width) { if (addstrip2 == false) { this.duplicateMovieClip("strip2", 1); addstrip = true; } _root.strip2._x = this._x+this._width-1; _root.strip2._y = this._y; } if (this._x<=-this._width) { this._x = _root.strip2._x+this._width-1; } if (this._x>0 && this._x<this._width) { if (addstrip2 == false) { this.duplicateMovieClip("strip2", 1); addstrip = true; } _root.strip2._x = this._x-this._width+1; _root.strip2._y = this._y; } if (this._x>=this._width) { this._x = _root.strip2._x-this._width+1; } } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.140.176.184

11/07 21:04, , 1F
忘了說 這是我在場景寬550時用的
11/07 21:04, 1F

11/07 22:09, , 2F
非常非常感謝你 請問要怎麼樣把P幣給你勒?
11/07 22:09, 2F

11/07 22:10, , 3F
有沒有都沒差^^|| 我只是隨自已高興而回答 有無皆可
11/07 22:10, 3F

11/11 22:06, , 4F
你..要我頒贈好人卡嗎? 嘿~:)
11/11 22:06, 4F

11/11 22:10, , 5F
另提供一個還不錯的教學網http://tinyurl.com/yjb5ln
11/11 22:10, 5F
文章代碼(AID): #15K8FSph (Flash)
文章代碼(AID): #15K8FSph (Flash)