sfcharm
05-29-2008, 06:22 PM
Hi,
here's my file :
http://www.muellerdesign.com/aftp/testfolder/MuellerFlashUpdate-Dv1.0.html
so I have sort of have an image reel than pans on mouse move and when you roll over on the image a white box pops in.
Each photo is an button that makes up 1 movie clip on the main timeline that gets controlled by a script on the main timeline also
here's what I want to happen:
I was hoping that when I roll over those white boxes that pop in, the main movie clip will go to a specific place on the stage (with easing) and the panning script on mouse over will be disabled until I roll out.
I'm a total newbie, and this is way too complicated for me, but i have to do it.
pls help:
here's the script for the panning
this.onMouseMove = function() {
constrainedMove(MC,5, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == -1) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/100));
}
};
}
stop();
here's an actionscript for making movie clips move with ease to s specific place on the stage
onClipEvent (enterFrame) {
xMC = getProperty(_root.MC, _x);
moveMC = _root.xTargetMC - xMC;
setProperty(_root.MC, _x, yMC + (moveMC/10));
}
is there a way to combine these???? sorry im losing my mind.
HELP!
here's my file :
http://www.muellerdesign.com/aftp/testfolder/MuellerFlashUpdate-Dv1.0.html
so I have sort of have an image reel than pans on mouse move and when you roll over on the image a white box pops in.
Each photo is an button that makes up 1 movie clip on the main timeline that gets controlled by a script on the main timeline also
here's what I want to happen:
I was hoping that when I roll over those white boxes that pop in, the main movie clip will go to a specific place on the stage (with easing) and the panning script on mouse over will be disabled until I roll out.
I'm a total newbie, and this is way too complicated for me, but i have to do it.
pls help:
here's the script for the panning
this.onMouseMove = function() {
constrainedMove(MC,5, 1);
};
function constrainedMove(target:MovieClip, speed:Number, dir:Number) {
var mousePercent:Number = _xmouse/Stage.width;
var mSpeed:Number;
if (dir == -1) {
mSpeed = 1-mousePercent;
} else {
mSpeed = mousePercent;
}
target.destX = Math.round(-((target._width-Stage.width)*mSpeed));
target.onEnterFrame = function() {
if (target._x == target.destX) {
delete target.onEnterFrame;
} else {
target._x += Math.ceil((target.destX-target._x)*(speed/100));
}
};
}
stop();
here's an actionscript for making movie clips move with ease to s specific place on the stage
onClipEvent (enterFrame) {
xMC = getProperty(_root.MC, _x);
moveMC = _root.xTargetMC - xMC;
setProperty(_root.MC, _x, yMC + (moveMC/10));
}
is there a way to combine these???? sorry im losing my mind.
HELP!