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

24Mar/100

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

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!");
}

Posted by mariusvw

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.