HTML works, but not in Flash?

Hi, I have a link on my web page, once pressed a small window opens with a web page (called linebreak). This works when I try it on a web page, but if I try to copy the code in Flash creates an error saying: access denied.
The written code is attached.
What should I do to make it work in Flash?
Thank you
Paul


OK, when you have created the SWF file and published it, did not put inside an html page? Most of the people don't just publish the SWF itself. Therefore, the html page for the SWF on it where you put the javascript function. The swf file is sitting on the page html with the inside function. Then, you simply call the function inside the html page using the code above in the previous posts.

var webName:String = "" http://onloadwin.com "; "
is not necessary.

{We (Release)}
getURL ("javascript:functionName ()");
}
is all you need on the button.

EDIT: Here is a sample:
http://www.johnkalnin.com/FlashHelp/bisys3.html
Play the movie, and then view source. See how the function on the html page. All done flash calls this function like this:
getURL ("javascript:shake ()");

Tags: Adobe Animate

Similar Questions

  • Video HTML works but not publishing in MUSE

    I threw this together without use of MUSE - just a test video I made in Dreamweaver.  The reason why I'm writing this in MUSE as well as DW forum is because that maybe I'm not the '5' code properly.  in any case:

    http://designerandpublisher.com/HTML5/video.html

    the HTML5 video above plays a lot on my desktop and on my mobile device.

    So now, I open MUSE and did a test phone web page.  I have incorporated the HTML5 code.  The video plays fine on my desktop but won't play at all on my mobile device (Galaxy Note ii).  It seems to start, then freezes, then out craps.  Here it is:

    http://designerandpublisher.com/Hawaii/mobile/

    What I don't understand is why am I'm suddenly problems with MUSE playing video files created for mobile at the original DW event, I made works perfectly?

    Please notify.

    Not all servers are supported all types of MIME files.  You may need to coax your server to recognize .ogv, .webm, etc...

    Also, I don't see a help of FLV for Mozilla.

    Nancy O.

  • Someone has changed my password to Icloud and lock my phone by finding my phone app now, can't activate my phone I have to do. My apple ID still works but not my Icloud how can I reset the password

    Some * changed my password to Icloud and lock my phone by finding my phone app

    What should I do now, I can not activate my phone. My apple ID still works but not my Icloud how can I reset the password

    ACCOUNT SAFETY CONTACT NUMBERS

  • How to remove a domain controller that was removed from the Internet works but not demoted

    How to remove a domain controller that has been remove from the Internet works but not demoted

    got two domain controllers and been deleted but not retrograde

    can help pls

    Hello

    Your Windows is better suited for the directory on TechNet Services. You can follow the link to ask your question: http://social.technet.microsoft.com/Forums/en-us/winserverDS/threads

    I hope this helps.

  • I found an old vista home basic dvd with a key, how can check whether key works but not install it?

    I found an old vista home basic dvd with a key, how can check whether key works, but not install it? some dvd install can be live boot from themselves too [password required for a direct start?]?

    Hello

    You must install it to see if it is legal to do so.

    There is no public database of product keys.

    See you soon.

  • I have tossiba laptop when I try music on my laptop speaker works but not the headphones work even not pregnant

    I tossiba laptope when I try music on my laptop speaker works but not the headphones speakers not even extra work

    Hi rajuarman,

    -Headset works fine on other computers?

    -Have you installed the audio drivers on your computer?

    -Not the problem only occurs when trying to play music in Internet Explorer?

    Your question does contain all the required information necessary for us to help you. Please include more information to continue troubleshooting as a result.

    Please see How to ask questions and provide the information required to help others.

    In the meantime, check out these articles:

    Tips for solving common audio problems

    No sound in Windows

  • XPS 13 - Wake from sleep using USB works, but not when lid closed?

    I mainly use my XPS 13 as a desktop replacement - I have the lid closed; monitor and a keyboard, a mouse connected (both wireless).

    I finally managed to get to wake up from its sleep by moving the mouse by activating 'allow this device to wake the computer from sleep mode' in the device (Win 7 64 bit) Manager, but it does nothing when the lid is closed, which is 99% of the time because I am using a monitor. I have to open the lid and use the power button.

    Does anyone have an idea on how to get this working, or not at all?

    It works fine on my other laptop Dell I bought at the same time (Inspiron 15). One is connected to a TV as a "Media Server", if the lid is also closed all the time, but he wakes up from his sleep when I move the mouse USB wireless.

    OK, it's now solved!

    The A08 BIOS update allows this, BUT the strange thing is that sometimes the option ' USB wake sleep ' is not available after a BIOS flash.

    This time, it was and now I can wake up the laptop from sleep, even with the mouse Wireless USB via a hub!

    Yay!

  • My address bar doesn't have AutoComplete. Windows XP and it worked but not now. How to start the AutoComplete?

    My computer crashed and it was restored. I am running Windows XP and I do not re - install Firefox Aurora after the computer has been restored with the new motherboard and HDs. All my software works, but the AutoComplete is not the case. Firefox remembers my username for login and my password. It's just the AutoComplete. I have to tap completely in the name of the site. When I opened the window of the history and bookmarks, there is no entry. The yellow star in the address bar does not work. When I click it, nothing happens.

    You can temporarily rename the file to places.sqlite.sav as a test.

  • PSC 1350 printer works but not scanner

    Hello

    Have just upgraded to Windows 7.  I have the printer psc 1350 to work & print documents.  I can not get the computer recognized or even to recognize the scanner function.  I have the installation discs and who have tried but still no scanner function.

    Site Web of HP said that the Windows 7 software should recognize the psc1350.  It recognizes the printer function but NOT the scanner function.

    Any ideas?

    Hello

    Open the program to Scan and Fax from Windows, and then follow the steps set out below, the steps for Windows 7 are identical:

    http://support.HP.com/us-en/document/c03511920

    Kind regards

    Shlomi

  • HP Pavilion g6: USB 2.0 works but not port to usb 3.0.

    Hello
    I got the problem like I said and port 2.0 usb works well but not 3.0
    port 3.0 gives the power but don't receive all the data to the computer.
    This happened after I installed windows 7, but it worked with windows 8.
    I tried to install the 3.0 drivers, but they do nothing.
    If this helps them more then my laptop: HP Pavilion g6 - 2203sa.

    Thank you.

    Hello

    Download and install the drivers for the AMD Chipset on the following link.

    http://www2.ATI.com/drivers/13-9_win7_win8_32-64_sb.exe

    When the installation is complete, restart the laptop.

    Kind regards

    DP - K

  • WRT54G - Internet connectivity failure - everything seems to work, but not online

    I have a WRT54G V8 router, who is 18 months old. Its used by 3 laptops to connect to the Internet (Wi - Fi all). All 3 laptops unable to connect all of a sudden. Steps are taken to solve the problems, still no luck. Please suggest if something else can be done.

    1. first test was to remove the router and connect a computer directly to the modem via a LAN comcast cable. Internet is available

    2. I have hard reset the router and configured again. No luck

    3. check the connectivity to the Internet through ports 1 to 4, no luck

    4. I can see the available signal and connect to the network, but not internet connection. I see the cell as shown (all dynamic) IP address obtaining

    5. I upgraded the firmaware to 8.0.6 version and and not set up once again, no luck (same as step 3 & 4)

    6. removed the WEP security, does not

    7 soft reset on the router (via the admin page reset to factory settings), no luck

    LED status

    Power - on and yellow

    Cisco - on

    WAN - SUITE

    Internet - ON and flashing

    Lights of port - when a laptop is CONNECTED

    I see the excellent signal strength and all laptops can connect to the network, but cannot go online. Google chrome shows a message hosting "solve" until timeout. Laptops show a 192.168.1.XX IP address. 4 ports are also not connect to Internet (mobile one GETS IP address via the ports as well)

    I have no other options left. I've seen a similar thread here (http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&message.id=2288), but no response. Please suggest what to do next.

    Okey, I finally found the problem. His Modem.

    Router is not able to get the IP address of the modem if the modem is started first and then I plug the internet cable to the router. But if I keep the router and modem connected and then reset the modem while keeping the router powered on, the router receives an IP address.

    And in both cases, if I connect the laptop with the modem directly, computer laptop can connect to the Internet.

    I bought a new router (WRT54G2) thinks that the problem is with the router, and I can reproduce the same behavior with both routers constantly.

    Make sure you modem is Motorola surf.

  • Save the file to the shared folder in Release Build works, but not in Export version

    We are ready to present our application to App World. However, we noticied when testing the 'export release' that build our file saving function of does not work (the file is not be saved - but the folder we created). The file records fine when running in debug or release mode, but not to export the final file.

    Is - this all simply because we are not supposed to try to run the bar directly exported version file and it should work once on App World? Has anyone experience this problem?

    We are trying to back up the folder "shared/music/AppName" If that helps.

    We have corrected it. We were writing somehow to the wrong address in the "shared". For some reason, it still worked when you use version debug/directly from the IDE, but does not when exported. That's all now works well.

  • Browser works but not apps

    I use a bb bold 9700 to test my application and I can not connect via the http connector class. Only the built-in browser works. Other applications, such as twitter, unable to connect either. Curiously, the integrated application of pandora plays music very well via wifi.

    I have the wifi active only, no data plan. Code works fine on the Simulator.

    Any ideas?

    I managed to do work, but the results are not compatible. I also got a new error, tunnel downwards.

    I found one problem was that I was using http instead of https for the facebook api url, then operator error here.

    Yet, it is strange that other applications like twitter could not connect through wifi, but I think it might have something to do with problems of http exception across the system. I don't know, just guessing.

    I know that at some point the embedded browsers and the internal browser worked so that the apps cannot connect by themselves. I seem to have gotten past that somehow, so I'll close this thread.

    Hypothesis of solution:

    Simply run my test code and see what you can find on the status of the wifi adapter and striking http test applications. Joanie helps you.

  • Restore function looks like it works but not recover.

    I tried restore several times and it seemed he was working but would never restore to a set point.  I even made a point and then tried to restore at this point without success.  The answer was "Impossible to restore.

    Some security programs prevent changes to their file and must be configured to allow the restoration of the system work.  For example, if your computer has Norton Antivirus or Norton Internet Security, you must disable Norton product Tamper Protection before you run the system restore. See the documentation of your security program. Boulder computer Maven
    Most Microsoft Valuable Professional

  • fl.drawingLayer works is not in Flash CC

    Use of haw fl.drawingLayer in JSFL? This example ( http://help.adobe.com/en_US/flash/cs/extend/WS5b3ccc516d4fbf351e63e3d118a9024f3f-7c5bCS5.h tml ) not working Flash CC, but working in CS6!

    I understand your point, but I do not think that it is supported.

    You can use the document class to draw shapes and lines:

    document.addNewLine)

    Adds a new path between two points.

    document.addNewOval)

    Adds a new Oval object in the rectangle enclosing specified.

    document.addNewPrimitiveOval)

    Adds a new oval primitive fitting into the specified limits.

    document.addNewPrimitiveRectangle)

    Adds a new rectangle primitive fitting into the specified limits.

    () document.addNewPublishProfile

Maybe you are looking for