Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tektonnic

macrumors 6502
Original poster
Mar 6, 2006
336
0
Bucks, UK
Hey all,

Wondered if anyone could answer my probably easy question, its a "how do i" (sorry).

Currently my flash site is made up of 6 different files which link to one another to display different content, they are all exactly the same layout and design except for a white box which containt the text, this box is a different size on each page. Is there a way of using just one file and the program swapping the boxes, infact it would be great if upon selecting anoth menu item the text faded and the box resized and the new text appeared.

Is this at all possible or am I asking too much of flash?

Cheers, Tom
 
Ok, I kinda worked out what I'm doing,
except,

in the following script:

on (release) {
img4_mc.onEnterFrame = function() {
img4_mc._alpha -= 5;
if (img4_mc._alpha <= 0) {
img4_mc._visible = false;
delete img4_mc.onEnterFrame;
}
};
}

on (release) {

img3_mc.onEnterFrame = function() {
img3_mc._alpha += 5;
if (img3_mc._alpha <= 100) {
img3_mc._visible = true;

}
};
}


img3_mc fades in before img4_mc fades out, can anyone tell me how I modify the code to make it work?
 
Make it so that img3 doesn't even start to fade in until img4 is all gone. Create a variable that can be switched on or off and have an incoming image check to see if that variable has been switched by the previous image already.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.