Javascript message box from Flash

Posted on 2010-11-15
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:Arrow_1
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

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 500 total points
ID: 34140652
Easy , from flash ;

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

Author Comment

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.
Suggested Courses

617 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