Click to See Complete Forum and Search --> : Show image after .swf plays?


whirlingvortex
07-21-2008, 11:06 AM
I have a page with a flash .swf video playing. I'd like to display an image instead, after it's finished playing. Is there any way to do this? I'm using html, css, php and javascript.

JeremyA
07-23-2008, 01:52 PM
I may have misunderstood your question...

but you could just stop() on a frame containing the picture you wish to display.

infinityspiral
07-24-2008, 12:57 AM
You could set a listener for a COMPLETE event attached to the video player and then have it launch a url in the same window if you needed it to go to an image inside an html page. Otherwise the above solution is a good one.

Eye for Video
07-29-2008, 01:25 AM
A more complete answer could come from a better description of your video. Is your video contained completely within a .swf timeline, or are you using a .swf to play a .flv video? The best answer would vary depending on the type of video.
Typically, a video contained within a .swf file would be a very short clip or animation. Longer, actual “videos” are usually encoded as .flv files and played in a .swf player. That’s where a onComplete event might be helpful.
If your video is placed on the timeline of the .swf, just go with the stop(); action placed in the last frame, as mentioned. If you are in fact using a .swf video player, unless you set the video to loop or go to the next selection, the last frame of the .flv should freeze and leave the viewers with an image. If you did a fade out, place your final image in the last frame of the .flv video and remove any looping or play next commands.
Best wishes,
Eye for Video
www.cidigitalmedia.com