Help with the mouse trail

Hi,

I am working on a project in which i am planning to display a video as one of my final project for my video art elective. I want to make it interactive by adding a mouse trail on top of it so that viewers can leave a mark temporarily on it… the mouse trail’s example is in the link below. http://www.inflexions.org/intothemidst.html

i have a code which i tried to fiddle with but i cudnt find a way around…

Can someone please guide me with the project…

Regards
Moonis

package
{
import flash.display.Sprite;
import flash.ui.Mouse;
import flash.events.MouseEvent;
import flash.events.Event;

public class MouseTrailer extends Sprite
{
	/* Light ball object */
	
	var lightBall:LightBall;
	
	/* Constructor */

	public function MouseTrailer():void
	{
		stage.addEventListener(MouseEvent.MOUSE_MOVE, startTrailer);
	}

	private function startTrailer(e:MouseEvent):void
	{
		/* Create a new LightBall object */

		lightBall = new LightBall();

		/* Position */

		lightBall.x = mouseX + Math.random() * lightBall.width;
		lightBall.y = mouseY - Math.random() * lightBall.height;
		
		/* Add to Stage */

		addChild(lightBall);

		/* Add Listener to Animate function */

		lightBall.addEventListener(Event.ENTER_FRAME, animate);
	}

	/* Animate function */

	private function animate(e:Event):void
	{
		/* Alpha */

		e.target.alpha -= 0.03;

		/* If lightBall is no longer visible, remove it */

		if (e.target.alpha <= 0.03)
		{
			e.target.removeEventListener(Event.ENTER_FRAME, animate);

			removeChild(e.target as Sprite);
		}

		/* Y Position */

		e.target.y += 0.9;
		
	}
}

What’s your question?

Can you please help on how i can attach the video coz i am really stuck bad.,. I tried everything but cant make it happen…
my question is this. I have a video… and on the video i want to superimpose a mouse trail which should look like the one in the link ( http://www.inflexions.org/intothemidst.html)

I have a flash file in which i have the mouse trail similar to the above link, but the problem is i am not able to put the mouse trail over the video…

the code of the mouse trail is this…

var points:Array = new Array();
var prev_xmouse:Number;
var prev_ymouse:Number;
this.onEnterFrame = function():Void {

this.clear();
this.lineStyle(1.5, 0xcc0000);
var dx:Number = this._xmouse - prev_xmouse;
var vx:Number = dx ? dx : Math.random() * randSet(-1, 1);
var dy:Number = this._ymouse - prev_ymouse;
var vy:Number = dy ? dy : Math.random() * randSet(-1, 1);
var pLen:Number = points.push({x:this._xmouse, y:this._ymouse, vx:vx / 3, vy:vy / 3, life:getTimer()});
for (var i:Number = 0; i < pLen; i++) {
if (getTimer() - points[i].life > 3000) {
points.splice(i–, 1)[0];
} else {
if (i && points[i]) {
points[i].x += points[i].vx;
points[i].y += points[i].vy;
var cx:Number = points[i - 1].x;
var cy:Number = points[i - 1].y;
this.curveTo(cx, cy, (points[i].x + cx) / 2, (points[i].y + cy) / 2);
} else {
this.moveTo(points[i].x, points[i].y);
}
}
}
prev_xmouse = this._xmouse;
prev_ymouse = this._ymouse;
};
function randSet():Number {
return arguments[Math.floor(Math.random() * arguments.length)];
}

so the question is how do i import the video which will serve the background and on it the mouse trail will work…

thanks