Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

slideshow

Status
Not open for further replies.

thinker5150

Programmer
Nov 19, 2002
2
US
I'm doing a presentation slideshow using flash. I'll be projecting this slideshow so I'm looking at 800x600 full screen. What I'd like to do is be able to set fade in/out times for each of the slides, and be able to cue them from my keyboard. Now all this seems pretty simple, but is there a way to do this without getting a jerky transition?
 
just tween inbetween each picture with the alpha going from 100% to 0 on the first image then 0 to 100% on the new image
 
man you're lucky, i did something like that just a few days ago, just had to modify a few lines of the script:

at the first frame of the main-timeline put a stop.

then make 2 keyframes for each picture

e.g. 1st frame pictue 1 in a keyframe
2nd frame picture 1 in a keyframe
3rd frame picture 2 in a keyframe,...

what is absolutely important is that you convert all pictures into movieclips.

then put the following script on every first picture of the corresponding 2
(i.e. instance of the movieclip in frame 1, frame 3, frame 5,...):

onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
this._alpha += 10;
}
on (keyPress &quot;<Space>&quot;) {
_root.nextFrame();
}


on every second frame (i.e. frame 2, frame 4,...)
put the following script on the instance of the movieclip:

onClipEvent (enterFrame) {
this._xscale += 30;
if (this._xscale>300) {
this._yscale = this._yscale/2;
}
if (this._yscale<10) {
this._yscale = this._yscale;
this._xscale -= 60;
}
if (this._xscale<=10) {
_root.nextFrame();
}
}


and then repeat that through your presentation.


i did the effect with a framerate of 20 per second,... worked quite smoothly

get my examples on


and



regards

Firegambler
 
updateAfterEvent() with smooth it out a bit too:

Code:
onClipEvent (enterFrame) {
    this._xscale += 30;
    if (this._xscale>300) {
        this._yscale = this._yscale/2;
    }
    if (this._yscale<10) {
        this._yscale = this._yscale;
        this._xscale -= 60;
    }
    if (this._xscale<=10) {
        _root.nextFrame();
    }
updateAfterEvent();
Code:
}
 
Thanks, you guys are great.

I love the actionscript method to approaching this. Even still, when I run it, I get some frame jumpiness. (I think the problem is that I'm running at full screen...) Can I just attribute this to my clunker of a machine? I've got an AMD 500 with a nvidia graphics card mx 400 with 32 megs onboard ram. Will a lower screen resolution help? Is there something else I'm forgetting?
 
well, i ran this whole thing on a 1,2 GHz AMD with 512MB RAM and a 32 MB Hercules Prophet Grafics Card. Sorry for not having any experiences with slower computers. regards

Firegambler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top