How to Go to a Webpage at the End of a Flash Intro

Adobe Flash is commonly used to create introduction movies for websites. When your visitor goes to your website's front page, the Flash introduction automatically plays, perhaps providing an overview of your business, a pitch for what users can do on your site, or a slide show of products. At the end of the introduction, it is standard to redirect visitors to your site's homepage, where they can access your site content. Loading a different webpage at the end of a Flash intro can be done with a line or two of ActionScript in the last frame of the movie. The method is different depending on whether you are using ActionScript 2.0 or ActionScript 3.0.

Things You'll Need

  • Adobe Flash
Show More

Instructions

  1. ActionScript 2.0

    • 1

      Open your Flash document in Flash.

    • 2

      Click on the last frame of the layer containing your ActionScripts in the "Timeline" pane.

    • 3

      Open the Actions window ("F9" key or "Window > Actions"). The Action editor opens.

    • 4

      Type the following line in the script editor, below any existing code. Change "www.mysite.com/home.htm" to the web address of the page you want to redirect visitors to at the end of the Flash intro.

      getURL ("http://www.mysite.com/home.htm", "_parent") ;

      The "_parent" parameter is optional and tells the browser to open the URL in the current window. Use "_blank" to open the page in a new window or other standard link target name.

    • 5

      Save your document. Export and test the movie as you normally do.

    ActionScript 3.0

    • 6

      Open your Flash document in Flash.

    • 7

      Click on the last frame of the layer containing your ActionScripts in the "Timeline" pane.

    • 8

      Open the Actions window ("F9" key or "Window > Actions"). The Action editor opens.

    • 9

      Type the following line in the script editor, below any existing code. Change "www.mysite.com/home.htm" to the web address of the page you want to redirect visitors to at the end of the Flash intro.

      var request:URLRequest = new URLRequest("http://www.mysite.com/home.htm");
      navigateToURL(request, "_parent");

      The "_parent" parameter is optional and tells the browser to open the URL in the current window. Use "_blank" to open the page in a new window or other standard link target name.

    • 10

      Save your document. Export and test the movie as you normally do.

Tips & Warnings

  • Your visitors may not want to sit through the entire Flash introduction, especially if they have visited your site before. A few of your visitors may not have Flash installed or enabled. Remember to provide a "Skip" link on the intro webpage to let visitors jump directly to your main content.

Related Searches:

References

Resources

Comments

  • kevinopar Apr 18, 2010
    It took me forever to come across this instruction because everyone on the net was using "getUrl," which works great in previous versions of flash but not CS4. Thank you so much!!

You May Also Like

Related Ads

Featured