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.
a mouse over gallery viewA mouse over gallery view
Page 1 of 1
3 Replies - 4564 Views - Last Post: 25 June 2007 - 12:21 AM
Replies To: a mouse over gallery view
#2
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.
mcReel.zip (5.36K)
Number of downloads: 186
My file attached above.
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);
mcReel.zip (5.36K)
Number of downloads: 186
My file attached above.
#3
Re: a mouse over gallery view
Posted 24 June 2007 - 10:10 PM
Food for thought:
Also, what happens if the mouse is at 350? ...
if(this._y < maxYvalue) { this._y += (_root._ymouse-this._y)/speed };
Also, what happens if the mouse is at 350? ...
#4
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
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...
mcReel.zip (621.46K)
Number of downloads: 215
my almost ended work attached above.
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});
mcReel.zip (621.46K)
Number of downloads: 215
my almost ended work attached above.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|