public class ContScroll
The ContScroll class lets objects move and gives a 3D impression. To create an instance of the ContScroll use the constructor new ContScroll().
Public Methods
Method Defined By
ContScroll(objectA:Object, objectB:Object, stage_Width:int, speed:Number=1):void  Constructor
Creates a new instance of the ContScroll class.
Constructor Detail
ContScroll(objectA:Object, objectB:Object, stage_Width:int, speed:Number=1):void  Constructor
public function ContScroll()
Intializes a new ContScroll instance.
Method Detail

This method will initiate the ContScroll methods.


  • objectA:MovieClip ____ Specifies one MovieClip to move.
  • objectB:Number=1 ____ Specifies another MovieClip to move.
  • stage_Width:int ____ Specifies the width of the stage.
  • speed:int=1 ____ Specifies the speed for the movement.
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 and place this script.
	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);