Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

any idea on how they got this multi depth effect 1

Status
Not open for further replies.
Looks like several separate movieclips, one for each layer, that are being moved by a script which responds to the mouse position - each layer is being moved by a different multiple. Place three clips on the stage (instance names clip1, clip2 & clip3) and put this code in frame 1:

Code:
this.onEnterFrame = function() {
	x=_xmouse, y=_ymouse;
	for (var i = 1; i<=3; i++) {
		this['clip'+i]._x = x*(i/3);
		this['clip'+i]._y = y*(i/3);
	}
};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top