a mouse over gallery view

A mouse over gallery view

Page 1 of 1

3 Replies - 4917 Views - Last Post: 25 June 2007 - 12:21 AM

#1 kizoku  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 05-March 07

a mouse over gallery view

Posted 24 June 2007 - 06:55 PM

Does anyone knows how to do something like the mouse over gallery view like the one in this website.

http://www.flashmint...plate-1957.html

I've been finding tutorials on it but didnt found anything.
Is This A Good Question/Topic? 0
  • +

Replies To: a mouse over gallery view

#2 kizoku  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 05-March 07

Re: a mouse over gallery view

Posted 24 June 2007 - 08:09 PM

I did something like this, but to the end of the "obj 1" and "obj 7" it should stop... but i can seem to make it stop.

MovieClip.prototype.followMouse1 = function(speed) {
	this.onEnterFrame = function() {
		if (_root._ymouse<=350) {
			this._y += (_root._ymouse-this._y)/speed;
		} else if (_root._ymouse>=350) {
			this._y -= (_root._ymouse-this._y)/speed;
		}
	};
};

mcReel.followMouse1(500);



Attached File  mcReel.zip (5.36K)
Number of downloads: 197
My file attached above.
Was This Post Helpful? 0
  • +
  • -

#3 DilutedImage  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 14
  • View blog
  • Posts: 646
  • Joined: 20-November 06

Re: a mouse over gallery view

Posted 24 June 2007 - 10:10 PM

Food for thought:
if(this._y < maxYvalue) { this._y += (_root._ymouse-this._y)/speed };


Also, what happens if the mouse is at 350? ... ;)
Was This Post Helpful? 0
  • +
  • -

#4 kizoku  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 12
  • Joined: 05-March 07

Re: a mouse over gallery view

Posted 25 June 2007 - 12:21 AM

I re-did and tried this. now the problem i had is that the image attached to my mcObj1 is too big... and i cant seem to resize it under the

var mcObj1:MovieClip;
mcReel.mcObj1.attachMovie("Obj1","Obj1", {_xscale:1, _yscale:1});





This is my final one... But for now I thought of making an array because i have 7 objects in the library each named, Obj1,Obj2,Obj3 and so on..
Then i have 7 placeholders on the mcReel (the showreel itself).
I not sure how to do it in array as i always end up doing one code for all of the different items i have meaning 7Obj = 7 sets of similar codes...

//For mcReel Rollover.
mcReel.onRollOver = mcReelOver;
mcReel.onRollOut = function(){
	delete mcReelOver
}
function mcReelOver( )  {
	this.onEnterFrame = scrollmcReel;
	 delete this.onRollOver;
}

var b = stroke.getBounds (_root);

function scrollmcReel ()  {
	if(mcReel._y<b.xMin || mcReel._y>b.xMax  || _ymouse<b.yMin || _ymouse>b.yMax)  {
		this.onRollOver = mcReelOver;   
		delete this.onEnterFrame;
	 }
	 if(mcReel._y >=-850)  {
		   mcReel._y = -850;
	 }
	
	if(mcReel._y <=-1550)  {
		   mcReel._y = -1550;
	 }
	 var xdist = _ymouse - 150;
	 
	 mcReel._y += -xdist /3
;
	 }
var mcObj1:MovieClip;
mcReel.mcObj1.attachMovie("Obj1","Obj1", {_xscale:1, _yscale:1});





Attached File  mcReel.zip (621.46K)
Number of downloads: 232
my almost ended work attached above.
Was This Post Helpful? 1

Page 1 of 1