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.
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.
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?
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.
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.
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.
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
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.
Copy link to clipboard
Copied
Can I see what your code looks like?