作者newpen2020 (newpen)
看板Flash
标题[问题] 请问语法问题
时间Thu Aug 19 19:49:16 2010
请问一下
图片轮动的flash效果
http://www.lugu.com.tw/scenery001.swf
两张接图中间的空隙有办法接合吗?
我的语法是
onClipEvent (enterFrame)
{
if (_x > 800)
{
_x = _x - _root.barW * 2;
} // end if
if (_x < -_root.barW)
{
_x = _x + _root.barW * 2;
} // end if
speed = Math.floor((_root._xmouse - 400) / 90);
_x = _x - speed;
}
以及
duplicateMovieClip("bar1_mc", "bar2_mc", 2);
barH = bar1_mc._height;
barW = bar1_mc._width;
bar1_mc._x = 0;
bar1_mc._y = 0;
bar2_mc._x = bar1_mc._x - (barW + 16);
bar2_mc._y = 0;
谢谢回答
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 58.99.85.195
1F:→ ericinttu:要做pano的效果吗? 08/19 19:59
2F:→ newpen2020:什麽是pano? 08/19 20:05
4F:→ ericinttu:找panorama那个, 但我Flash CS5开不起来, 纯看as code 08/19 20:28
5F:→ ericinttu:panorama 全景图=360度图 08/19 20:28