FORUMS: list search recent posts

Redirect to homepage after flv(intro) is done. AS3/CS3

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Anthony Gonsalves
Redirect to homepage after flv(intro) is done. AS3/CS3
on Dec 22, 2009 at 8:11:02 pm

Hi i have been searching throughout the net and books that i have and i am unable to figure out how to redirect my Intro(flv) that i have created to my homepage when it is done playing in actionscript 3. i am receiving the error code 1046 when i test the movie but it does play when i remove the listener and function. Just hoping someone could help me out i would really appreciate it.

Anthony

The code is:

var connection:NetConnection = new NetConnection();
var stream:NetStream;
var md_obj:Object = new Object();


var vidContainer:MovieClip = new MovieClip();

var vid:Video = new Video(800,600);

connection.connect(null);
stream = new NetStream(connection);
vid.attachNetStream(stream);

md_obj.onMetaData = metaData;

stream.client = md_obj;
stream.play("intro.flv");

vidContainer.addEventListener(VideoEvent.COMPLETE,onComplete);

vidContainer.addChild(vid);

function onComplete(event:VideoEvent):void
{
var onComplete:URLRequest = new URLRequest("http://www.mywebpage.com");
navigateToURL(onComplete,"_self");

}

function metaData(info:Object):void
{

}



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]