"Manage" and "Humble" are two of the Text MovieClips and I tried telling flash:
//increase the "manage" alpha
if(posters._x >= 2850) {
manage._alpha += 3;
}
//decrease the "manage" alpha
if(posters._x <= 300) {
manage._alpha -= 5;
//increase the "humble" alpha
if(posters._x <= -1000) {
humble._alpha += 3;
}
//decrease the "humble" alpha
if(posters._x <= -1001) {
humble._alpha += 3;
}
This is supposed to tell flash that when the poster MovieClip scrolls to a certain point that it should fade "Manage" in or out. It works for the most part but the strange part is that logically I would think that once you scrolled to the point where "Manage" fades out then you could scroll backwards and then it would fade back in because, once again:
//increase the "manage" alpha
if(posters._x >= 2850) {
manage._alpha += 3;
}
Regardless, I'm having all sorts of issues because I need three different Text MovieClips to fade in and out in relation to certain parts of the poster scroll and I don't know exactly how to write the code. Here's what I have so far in its entirety. Any ideas? Suggestions?:
//start "posters" move
this.onEnterFrame = function() {
this.posters._x -= 3;
}
posters.onRollOver = postersOver;
function postersOver() {
this.onEnterFrame = scrollPosters;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPosters() {
if(_xmouse<b.xMin || _xmouse>b.zMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = postersOver;
delete this.onEnterFrame;
}
//stop "posters" @ left
if(posters._x >= 4925) {
posters._x = 4925;
}
//stop "posters" @ right
if(posters._x <= -3950) {
posters._x = -3950;
}
//increase the "manage" alpha
if(posters._x >= 2850) {
manage._alpha += 3;
}
//decrease the "manage" alpha
if(posters._x <= 300) {
manage._alpha -= 5;
}
//increase the "humble" alpha
if(posters._x <= -1000) {
humble._alpha += 3;
}
//decrease the "humble" alpha
if(posters._x <= -1001) {
humble._alpha += 3;
}
var xdist = _xmouse - 350;
posters._x += -xdist / 15;
}

New Topic/Question
Reply



MultiQuote




|