• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

New Here ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

Hi I would like to know, how do I add a Hyperlink on Flash, that opens a PDF in adobe reader and not the web browser.

TOPICS
ActionScript

Views

882

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

That has to do with what program the user has set to be the default PDF reader. You probably do not ahve much control over such a thing from Flash Player.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

Thanks for such a quick response Joseph,

I am creating a presentation, that I'll be running on my laptop, the problem is I need to link to an AUTOCAD file, which can't be previewed on a web browser, I need to click on the Hyperlink, and it must open the drawing on AutoCad. can your help?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

If you link directly to the local AutoCad file within the project it doesn't simple open in AutoCad? I imagine it should.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 29, 2015 Apr 29, 2015

Copy link to clipboard

Copied

How do you link, within a project, are there any tutorials that can help me? I want to create a button that will open the link for me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

Check the Code Snippets panel - you can find all sorts of neat starters there.

Here is the one for a hyperlink:

/* Click to Go to Web Page

Clicking on the specified symbol instance loads the URL in a new browser window.

Instructions:

1. Replace http://www.adobe.com with the desired URL address.

   Keep the quotation marks ("").

*/

instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage(event:MouseEvent):void {

  navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

}

So for a local file - just put the path to the file in place of a URL.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

You can also use something like FSCommand to execute local code from Flash files:

flash.system - Details Adobe ActionScript® 3 (AS3) API Reference

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

Yoh, what is FSCCommanr ? sorry man I am an absolute beginner in Flash. I tried the code:

/* Click to Go to Web Page

Clicking on the specified symbol instance loads the URL in a new browser window.

Instructions:

1. Replace http://www.adobe.com with the desired URL address.

   Keep the quotation marks ("").

*/

instance_name_here.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);

function fl_ClickToGoToWebPage(event:MouseEvent):void {

  navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");

}

this is the same code I used before and it opens a pdf file in a web browser, and it doesn't open an AutoCAD file.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

LATEST

Can I see what your code looks like?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines