Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Javascript message box from Flash

Posted on 2010-11-15
Medium Priority
Last Modified: 2012-06-27
I need to generate a popup message box from a Flash movie. Currently it seems this must be done through javascript if I'd like it to actually be separate from the Flash movie. I need the popup to display a yes/no prompt and report the response back to the Flash movie. Can this be done? If so, how?
Question by:Aaron Feledy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 14

Expert Comment

by:Ali Kayahan
ID: 34139724
LVL 13

Author Comment

by:Aaron Feledy
ID: 34140264
Ok, using that I can have javascript create the popup when the page loads, but how can I have Flash trigger that popup instead?
LVL 14

Accepted Solution

Ali Kayahan earned 2000 total points
ID: 34140652
Easy , from flash ;

import flash.external.ExternalInterface;
        "javascript_popup_function",'parameter for js function here');                                             
LVL 13

Author Comment

by:Aaron Feledy
ID: 34141186
Can I make this work in AS2?
LVL 14

Expert Comment

by:Ali Kayahan
ID: 34141253
it should also work for as2 except button event listening just trigger ExternalInterface line from as2

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question