I am using youtube’s AS3 flash player on my site. Can I make it so that when the video finishes it, it automatically forwards to a specific page? How would I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Even when using the AS3 player, you can still register javascript handlers; when you load the player just make sure you append
as a parameter to the URL. Once you’ve got the javascript handlers registered for the AS3 player, you can then add a javascript listener to the player state change (specifically the ENDED state):
EDIT:
Once you have the javascript listener ready, you can then set up an actionscript listener which will call this javascript function on any state change. Something like this, perhaps (untested):