PDA

View Full Version : Slide Show


Raneman
06-12-2002, 06:40 AM
I need to put together a slide show movie, displaying few images fading in & out each one lasting about 5 seconds. I know MX has the slide show template. But I don't need anything extra at all. Just a simple code controlling the alpha and delay time. Could anyone help me.
thx

farafiro
06-12-2002, 07:19 AM
u can do it all by _alpha and if statment
// Say u have 4 images (pic1,pic2,....)
//make them all MC
//on the _root
_root.pic1._alpha=1
_root.pic2._alpha=0
_root.pic3._alpha=0
_root.pic4._alpha=0
//make an empty movie clip
onClipEvent(enterFrame){
_root.pic1._alpha-=10
_root.pic2._alpha+=10
if(_root.pic2._alpha==100){
_root.pic2._alpha-=10
_root.pic3._alpha+=10
}else if(_root.pic3._alpha==100){
_root.pic3._alpha-=10
_root.pic4._alpha+=10
}else // and so on
}