is it possible to get this function in flash to load a page without using a on release function. I want to make the flash file i have created to load a html page once the end of the timeline is reached.

if i use it wil out the on release function i just keep getting the error undifined url. the code i have used is

getURL("", "_self"

Dani AI

Generated

reported getting the timeline-triggered navigation working. Below are concise, practical follow-ups so others who land on this thread later can implement the same pattern reliably and avoid common gotchas.

Put the navigation call on the last frame (or call it from code that runs once when the timeline finishes). For ActionScript 3 use the supported API rather than AS2-only functions. Example (AS3):

import flash.net.URLRequest;
import flash.net.navigateToURL;

navigateToURL(new URLRequest("https://example.com"), "_self");

If the movie must work in older AS2 projects, keep the call as a single-shot frame script so it does not repeat each playthrough.

Quick troubleshooting checklist:

  • Verify the URL string is complete (protocol, correct path) and free of typos.
  • Test the published SWF in a browser with the HTML wrapper that will host it; the authoring player can hide app-wide issues.
  • Remember browser behavior: opening a new window from code may be blocked unless triggered by a user action; replacing the current page is usually more reliable.
  • Check the HTML embed method and publish settings if the wrapper is altering the URL or blocking navigation.
  • If you need guaranteed browser redirects, consider calling JavaScript via ExternalInterface and change window.location from the page hosting the SWF.

Note: Flash Player is deprecated and modern browsers may not support SWFs. For new projects, implement redirects in the HTML/JS layer or migrate the interactive portion to HTML5 for long-term compatibility.

the problem i was having with loading the page was i had saved the page as a .htm and flash would only load the page if it was saved with a .html.

it now works with the code

getUrl("http//www.the-page-i-want.com/index1.html
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.