減速スライドショー(基本形)
コード(ActionScript 2.0)
var base:Number; var rate:Number = 5; this.s01_mc.onRollOver = function(){ base = main_mc.ph01_mc._x; } this.s02_mc.onRollOver = function(){ base = main_mc.ph02_mc._x; } this.s03_mc.onRollOver = function(){ base = main_mc.ph03_mc._x; } this.s04_mc.onRollOver = function(){ base = main_mc.ph04_mc._x; } this.s05_mc.onRollOver = function(){ base = main_mc.ph05_mc._x; } this.main_mc.onEnterFrame = function(){ main_mc._x -= (main_mc._x + base)/rate; }