• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Redirect to index when video intro finishes

New Here ,
Feb 18, 2009 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

582

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
community guidelines
New Here ,
Feb 18, 2009 Feb 18, 2009

Copy link to clipboard

Copied

LATEST
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?

Votes

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
community guidelines