Hi! I'm trying to make a flash intro for a client. I can make all the flashy effects and all that...but I have no idea how to make an intro that automatically redirects to the homepage when it's done. I can't find any tutorials about it...so I'm betting it's something obvious that I just havent figured out yet.

Any help will be appreciated.

Dani AI

Generated

A short, practical follow-up based on the thread: the usual ways to send the user to the homepage after an intro are (a) call a browser-navigation API from the intro's final frame, or (b) run that navigation from a preloader/task that waits until the SWF is fully loaded. That matches advice from (Adobe docs), and (use a navigation call), and (use a preloader). OP later confirmed the fix; the notes below turn those pointers into a concise checklist and a couple of safe techniques.

For ActionScript 3 use navigateToURL (same-window targets avoid popup blockers). If you prefer calling the host page directly, use ExternalInterface to set window.location. Example AS3 patterns:

import flash.net.URLRequest;
import flash.net.navigateToURL;
navigateToURL(new URLRequest("http://example.com"), "_self");
import flash.external.ExternalInterface;
ExternalInterface.call("function(url){window.location.href = url;}", "http://example.com");

Preloader and troubleshooting checklist: put the preloader in frame 1 and the heavy assets in a later frame or separate SWF; avoid exporting symbols in frame 1 (or set their export frame to 2+) so the preloader can run immediately; monitor loaderInfo.bytesLoaded/bytesTotal in AS3 and only advance when complete; prefer _self or window.location to avoid popup blockers. Also note Flash Player reached end-of-life in 2020, so for new projects use HTML5/CSS/JS, SVG/Lottie, or video instead; see Adobe's Flash Player end-of-life information for details. (For AS3 API details see Adobe's navigateToURL documentation.)

Recommended Answers

All 7 Replies

This should do it for you Adobe website

Member Avatar for Member #114696

use function. Use this function ion layer action panel of last frame.

hi thanks for the quick responses! but i think my first post was a bit misleading. Acutally, the only thing I can do in Flash is make a simple banner , which i learnt from quick 10-minute tutorials. So can you guys give a little more detail?

Thanks again

I think you are looking for a preloader.
A preloader is a movieclip which plays until getBytesLoaded=getBytesTotal (the whole flash movie is loaded). After loaded, the movie goes to the main frame using gotoAndPlay.
Here's a tutorial.

at the end of the frame please write this code

getURL("link.ext","target","method");

please above code instead link.ext your home page and that extension

Thanks guys! I finally got it working!

add reputation for solving thread

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.