I will help anyone with getting a website designed full service

<snipped>

Questions welcome too ?

:pretty:

Dani AI

Generated

Quick note: is right that help should stay in-thread so others can learn from it later. , if you want to pitch in, share your process and examples here (wireframes, checklists, code), and folks can ask follow-ups publicly.

, to open a URL from a Flash button:

ActionScript 2 (AS2)

myBtn.onRelease = function() {
  getURL("https://example.com", "_blank");
};

ActionScript 3 (AS3)

import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;

myBtn.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void {
  navigateToURL(new URLRequest("https://example.com"), "_blank");
});

Tips that fix common gotchas:

  • Give your button instance a name (e.g., myBtn) in the Properties panel.
  • If it is a MovieClip used as a button, set myBtn.buttonMode = true; myBtn.mouseChildren = false;.
  • The click must be a user action; pop-up blockers will block window opens triggered without a click.
  • When embedding the SWF, do not disable networking; allowNetworking="all" is the default.

Important: Flash reached end-of-life in 2020 and is blocked in modern browsers. For anything new, use HTML/CSS/JS. The web-friendly equivalent is simple:

<a href="https://example.com" target="_blank" rel="noopener noreferrer">Open link</a>

If you need a button look, style the anchor with CSS. This approach works everywhere today and is better for accessibility and SEO.

Recommended Answers

All 2 Replies

how to use the URL link in a flash button & the action script

I will help anyone with getting a website designed full service

<snipped>

Questions welcome too ?

:pretty:

Then what is purpose of daniweb forum if you want to question been asked on your site?

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.