action script 3.0 in adobe animate cc , how to solve click go on the web page - actionscript-3

when I test movie in adobe animate the function of button fb can directly go to the fb page but when I export to the .swf file it cannot go to fb page i do not know how to solve this issue someone help this is my project...

Related

Clickable HTML5 banner with Flash Professional CC, including a clickTag

I'm using Flash Professional CC to create online banner. To be honest, I don't know anything about coding with HTML5. When I export my ActionScript into HTML5, all animations work perfect, but the button doesn't work. Can anybody tell me, how it's possible to make the whole banner clickable and how to integrate a clickTag?
Create a button symbol in your document. That gives you a cursor.
In your published HTML file add this in the head
var clickTag = "https://www.google.com";
On your canvas div right before the ending > add this
onclick="javascript:window.open(window.clickTag)"
Open in a browser, click and you will see it load google in a new tab.

Actionscript 3.0 Hyperlink Issue

I have created buttons that are essentially just hyperlinks to twitch.tv they work perfectly fine when I am previewing the UI via ctrl+enter within flash but when I export them to a swf when I click them nothing seems to happen... I am not sure if this is because of something I am doing when exporting them? But here is the code I have used
twitch.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.twitch.tv"), "_self");
}
I have tried to global security settings panel with a tutorial I found but It wouldn't allow me to link my desktop through linking the location of files, please help!
Navigate Publish Settings in Flash and select the Access network only from Local playback security option Menu. As shown in the image below.

Created a hyperlink on a button however it only work on the first click then stop working

I'm new to flash. I am using Adobe Flash Professional CS6. I have created a menu bar with a drop down menu and rollovers to change the colors.
I have put the the code (below) on the background and then given the button the instance name of 'navbarbtnhome'.
navbarbtnhome.onRelease = function() {
getURL("http://www.google.com", "_self");}
After i publish and open the HTML file the hyperlink will only work for the first click, after that I have to amend the code in some way and then publish and open it again, then the hyperlink will work another time until I repeat the process. Can anyone help, I'm totally lost for ideas now after trying for hours. my full menu bar is here if anyone wants to help.
Thanks.
It seems as though getURL doesn't work when testing your file locally, due to security sandbox restrictions. Assume that the links work, and upload it to your server and then test it -- hopefully it will work that way :)
Source: getURL not working on HTML export (Actionscript2.0)

How to trigger "share via" menu popup as3

I build android app with as3.
I need to create a button which will trigger the native share via menu, so i will be able to let the user share the link to my game.
Haven't tried it myself, but apparently this might do the job:
https://github.com/mr-archano/Android-AIR-Extensions

Flash not opening links on click

I created this banner with Flash and I need that on click it opens a web page.
I used this Actionscript 3.0 code...
link_btn.addEventListener(MouseEvent.CLICK, openurl);
function openurl(event:MouseEvent):void {
var url:URLRequest = new URLRequest("http://www.festivity.it");
navigateToURL(url, "_blank");
}
BUT it's not working!
WHYYYYY?!
I tried setting it on the timeline and also on a button, but nothing changed.
Whenever I click on the button... nothing happens, but sometimes a message opens with a security alert.
Thanks.
Chiara
Make sure your publish settings enable network access from "local playback security":
I have spent hours and hours working with the action code snippets. My head was practically bleeding, trying to figure out why my simple Go-To-URL action script wasn't working. I've been using a much older version of Flash for ten years. The "local playback security" setting was the problem, and it was not mentioned in any of the Adobe forums that I visited. What a frustrating "feature".