Marius van Witzenburg We fight for our survival, we fight!

24mrt/100

How to make a Flash movie redirect with ActionScript3 from your timeline

Posted by mariusvw

You can use the following code to simply redirect from a key in your timeline.

I used this to redirect after my preloader finished.

var url:String = "home.html";
var request:URLRequest = new URLRequest(url);
try {
    navigateToURL(request, "_self");
} catch (e:Error) {
    trace("Error occurred!");
}