How do I insert a redirect action script at the end of a movie?

Hi all,

Super Flash newbie question. Have a flash intro, looks good, ready to go.

Now, using flash cs4 how do I insert an actionscript that will forward to the website after the intro completes.

I am using flash professional cs4, I really need to know what the physical steps are that I need to take.

Assuming your movie is set to Actionscript 2 this will work, if it is an AS3 file than there may be some new fancy way that I am unaware of.

  1. Create a new layer on the time line and name it actions.
  2. At the end of this layer create a keyframe.
  3. Select the keyframe you just created and open the actions window (window > actions)
  4. Paste this in there:
getURL("http://google.com/")
  1. Change URL to meet your needs. :stuck_out_tongue:

Hope it helps. :slight_smile:

It is action script 3, I will give this a shot though and let you know how it turns out.


var url:String = "http://www.google.com"
var urlRequest:URLRequest = new URLRequest(url);
navigateToURL(urlRequest, "_blank");

and don’t forget to import the classes…