Highlighted

Redirect to index when video intro finishes

New Here ,
Feb 18, 2009

Copy link to clipboard

Copied

Hi, all. Newbie here referred to the AS3 forum from the General Discussion forum.

I have a FLV (video) that we'd like to set up as a quick intro before the browser is automatically re-directed to the home page. Trouble is, the AS written so far opens the new page immediately; there's no wait-for-a-trigger written into it, and frankly, no trigger. The movieclip is a self-starting one-framer; when I select it, I cannot create actions ("Current selection cannot have actions applied to it"). I can, however, select the keyframe and write actions. Here is what I've got so far:

var url:String = " http://www.mywebsiteurl.com/index2.htm";
var req:URLRequest = new URLRequest(url);
navigateToURL(req, "_self");

Any thoughts or suggestions would be appreciated.

TOPICS
ActionScript

Views

412

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Redirect to index when video intro finishes

New Here ,
Feb 18, 2009

Copy link to clipboard

Copied

Hi, all. Newbie here referred to the AS3 forum from the General Discussion forum.

I have a FLV (video) that we'd like to set up as a quick intro before the browser is automatically re-directed to the home page. Trouble is, the AS written so far opens the new page immediately; there's no wait-for-a-trigger written into it, and frankly, no trigger. The movieclip is a self-starting one-framer; when I select it, I cannot create actions ("Current selection cannot have actions applied to it"). I can, however, select the keyframe and write actions. Here is what I've got so far:

var url:String = " http://www.mywebsiteurl.com/index2.htm";
var req:URLRequest = new URLRequest(url);
navigateToURL(req, "_self");

Any thoughts or suggestions would be appreciated.

TOPICS
ActionScript

Views

413

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 18, 2009 0
New Here ,
Feb 18, 2009

Copy link to clipboard

Copied

I'm trying to do this now with a cue point (called "end") at the end of the FLV. Still no go with the following ActionScript:

var cuePoint = function(cues) {
var url:String = " http://www.mgibsondigital.com/whiteconstruction/home2.htm";
var req:URLRequest = new URLRequest(url);
navigateToURL(req, "_self");
}
vid.addEventListener("cuePoint", navigateToURL);

Any thoughts from you coders?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 18, 2009 0