■ ムービークリップをスクロールするには
//メインタイムラインのフレームアクション
import
flash.geom.Rectangle;
theDefaultHeight
= _mc._height;
_mc.scrollRect = new
Rectangle(0,0,160,120);
_mc.onEnterFrame = function(){
var theScrollRect = this.scrollRect;
if (this.scrollRect.y < theDefaultHeight
- 120){
theScrollRect.offset(0,2);
}else{
theScrollRect.y = 0;
}
this.scrollRect = theScrollRect;
};
※.このサンプルはActionScript2.0でパブリッシュする必要があります。

