Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-15-2011, 10:34 PM   #1
bitbitbit
Member
 
Join Date: Aug 2008
Posts: 59
Default Load URL at end of FLV

Hello,
I have been trying for most of the afternoon to make an FLV that will load a new page (specifically just refresh the page it is on, but loading it again is just as good and probably easier) when it ends.
So far I have converted my video to an FLV, imported it to the stage with "Load external video with playback component" and created a cue point at the end of the video that is named "end".
I have no experience with Actionscript 3, and I haven't been able to figure out how to make the video getURL("whatever"); when it finishes...
Below is what I've come up with so far that isn't doing anything at all, but it's mostly guesswork so it's probably completely wrong. My instance of FLVplayback is called "player"

Code:
import fl.video.CuePointManager;


player.addEventListener('end');
{
	getURL("whatever");
};
I'm sure this isn't a difficult thing to do, it seems pretty basic, can anyone help me out?
Links removed from code because I don't have 50 posts.
bitbitbit is offline   Reply With Quote
Old 01-16-2011, 12:26 AM   #2
werehunt
Senior Member
 
Join Date: Apr 2009
Posts: 352
Default

You can listen for video end:

http://www.adobe.com/livedocs/flash/...event:complete

And its navigateToURL in AS3:

http://www.adobe.com/livedocs/flash/...ateToURL%28%29
__________________
Looking for Flash?

Last edited by werehunt; 01-16-2011 at 12:29 AM.
werehunt is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:27 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.