all groups > macromedia flash sitedesign > may 2004 >
You're in the

macromedia flash sitedesign

group:

how to fade photo in & out, any direction?


how to fade photo in & out, any direction? toddb58
5/20/2004 6:19:37 PM
macromedia flash sitedesign:
I have a few photos on my site, cant figure out how to get them to fade in when i click or fade in and out..

any ideas?


Re: how to fade photo in & out, any direction? g60vdub
5/20/2004 7:15:34 PM
Put the images in movie clips start with the image faded to 0% alpha and add a
?stop();? action to the frame go to frame 15 or the length of the fade you
desire and put another stop and keyframe with a 100% alpha now copy the first
frame and paste it at frame 30 and add another stop action there.

Drag the image movie clip to the main timeline give it an instance name say
(?image1?) and create the button to control the image movie clip tell it to
play frame 2 on roll over and play frame16 on rollout. The button script should
look something like this
on (rollOver){
Image1.gotoAndPlay(2);
}
on (rollOut) {
iamge1.gotoAndPlay(16);
}

The button could be a button that is just a hit area over the image movie clip
to do this draw a box the size of the image press F8 to convert it in to a
symbol and choose button.
Inside the movie clip copy the Up frame and paste it in to the hit keyframe
and then clear the up frame now you have an invisible button the size of your
image.

Hope this Helps,

AddThis Social Bookmark Button