FORUMS: list search recent posts

Re-direct me!

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Bianca morm
Re-direct me!
on Oct 27, 2009 at 5:56:36 pm

Hi guys,

Program: Flash CS3
Problem: re-directing viewer after video is done playing.
Experience with program: minimal

GOAL / info:

I'm streaming an .flv from an ftp in flash. I will publish and export this as a .swf and upload it to a website so it plays automatically. When it is done, I would like it to re-direct me to a new URL.

My video is one key frame in my time-line.


How do I re-direct the viewer only AFTER the movie is done playing / streaming?

whats happening now is that it automatically re-direct me before the movie has even started.

Any ideas?

Return to posts index

Adam Ashby
Re: Re-direct me!
on Oct 27, 2009 at 6:52:43 pm

In the properties panel give your video an instance name. In the following example its "myFLV". Then add an event listener that listens for the video event, "COMPLETE", and executes a function that navigates to your desired URL. In this example the function is called "goSite".




function goSite(evt:VideoEvent){
navigateToURL(new URLRequest("yourpage.html"),"_self");

Adam Ashby
mutli-media artist

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved