Create a new fla file and name it Contscroll.fla. Place the fla in the same folder as the biz folder. Create 6 MovieClips and place them on the timeline. Name them
cl1, cl2, sf1, sf2, lf1, lf2. Then create an Actionscript file, name it Contscroll.as and place this script.
package
{
import flash.display.Sprite;
import flash.display.MovieClip;
import biz.flashscript.animation.ContScroll;
public class Contscroll extends Sprite
{
public var cl1:MovieClip;
public var cl2:MovieClip;
public var sf1:MovieClip;
public var sf2:MovieClip;
public var lf1:MovieClip;
public var lf2:MovieClip;
public function Contscroll ():void
{
var sc:ContScroll = new ContScroll(cl1, cl2, stage.stageWidth, 0.1);
var sf:ContScroll = new ContScroll(sf1, sf2, stage.stageWidth, 0.2);
var lf:ContScroll = new ContScroll(lf1, lf2, stage.stageWidth, 0.4);
}
}
}
|