Link to home
Start Free TrialLog in
Avatar of okd
okd

asked on

Slide show with fade-in transition

I want to create a jpeg slide show, in which there will be a fade-in or fade-out transition effect between the sildes. I can do a simple slide show with some pictures, but I can not provide any fade-in transition effect between slides. Is there any simple way to do that? If so, can anyone please tell me the steps to do this. I am new in this area. Thanks. -okd.
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

I believe in Flash MX there is a Sample FLA file, which does this effect. maybe under lesson/samples folder.
ASKER CERTIFIED SOLUTION
Avatar of OBCT
OBCT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jt6572
jt6572

ps: heres a tip i just found....

Comment from rascalpants
Date: 12/03/2003 08:07AM PST
 Comment  

one other tip that you might use is when ever you use Alpha tweens, you should never go from 0% to 100%...

instead you should go from 1% to 99%

I can't remember why, but this seems to help the CPU out a little bit...

rp
 
Wow, I never knew that. I guess that proves you learn something new everyday :)
Cheers

-OBCT
okd,

Please post a comment and let us know how you are going with your project

Cheers

-OBCT
Avatar of okd

ASKER

Hello OBCT: Thanks for your email. When start a new movie, how can I set the width and height. According to the tutorial, I just need only one layer and that is for the script, no layer for the images, right? I did the other stuff, but I can see only one picture, no slide show. Can you please tell me a bit detail. Thanks. - OKD

Hello jt6572: I also tried your way. Can you please tell me where can I give the alpha value. I am using Macromedia Flash MX 6.0. Many thanks. -OKD

Avatar of okd

ASKER

Hello all,

I did the slide show. I used three layers, namely background, movie clip and actions. The images and sound file are loaded dynamically from a folder. I have used 13 images, slide transition takes place automatically after 10 seconds. The sound is given in a loop and it will play 100 times. The following is the script I used. This is fine, but this is not the thing I wanted. The problem with this is that I have to supply images separately.

What I want is to put all the images in the timeline as keyframes. Is there any tutorial (with script) to do that? Thanks. - OKD.


square._alpha=0;
mypic=1;
// script causes slides to advance automatically every 5 seconds no start button it just plays
_root.onEnterFrame = function()
{
if (square._alpha < 10)
{
loadMovie("images/image" + mypic + ".jpg", "square")
fadeOut=false;
fadeIn=true;
message.text=mypic;
}
if (square._alpha > 10 && fadeOut)
{
square._alpha -= 10;
}
if (square._alpha < 100 && fadeIn && !fadeOut)
{
square._alpha += 10;
}
else
{
fadeIn=false;
}
if (mypic>=13)
{
mypic=1
startTimeSet=0;
}
if (getTimer() > 5000 && mypic < 13 && !fadeIn && !fadeout && mypic==1)
{
fadeout=true;
mypic=2;
}
if (getTimer() > 10000 && mypic < 13 && !fadeIn && !fadeout && mypic==2)
{
fadeout=true;
mypic=3;
}
// continue to add if statements for every image in the series mypic==3, 4, 5, 6, etc.
}

backmusic = new Sound();
onLoad()
{
 backmusic.loadSound("Test.mp3");
 backmusic.start(0,100)
}