PDA

View Full Version : SWF Video Plays >> Then Redirect/Load index.html


dalecompton
09-29-2010, 12:14 AM
Hope I am not wasting anyone's time with this. I've tried searching for similar topics, but a few of them didn't answer my question.

I have a SWF file that I would like to play automatically upon visiting our webpage. Then, once the video is done playing it loads/redirects the visitor to the index.html of our webpage.

Can someone help explain how to do this. Not looking for someone to hold my hand, but would love to be given some advice or the very least point me in the right direction.

Thanks for you time :)

adninjastrator
09-29-2010, 02:14 AM
So what page is the .swf/video on if not the index page? sort of a splash page... but will it be the index (first page displayed) page of your site... then redirect to index2?
Is this actually a video or just a .swf?
If you are using netstream to play the video, there are lots of things you can have the video do when it finishes. For example (AS2):
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Stop") {
trace("Video complete")
ns.seek(60);
// ns.play();
ns.pause();
// gotoAndStop("after_video");
getURL("http://www.cidigitalmedia.com/index.html", "_blank");
}
}

reading thru the code...
when video stops..
trace "Video complete" during testing
seek to 60 seconds into video
could play from that point but for now, commented out
so instead pause the video at 60 seconds, so no blank screen
could go to and stop at a frame named "after_video" and play the timeline from that point, but commented out for now
instead, redirect to a URL (adjust URL as needed, _parent perhaps?)

So redirect to URL is just one of many options available.
Best wishes,
Adninjastrator