Skip to main content
Participating Frequently
March 20, 2011
Question

how can i have a pop up message in flash?

  • March 20, 2011
  • 2 replies
  • 6343 views

how do you do this in flash

This topic has been closed for replies.

2 replies

Participating Frequently
March 20, 2011

In Flash you could open a javascript popup interfacing flash and javascript with the ExternalInterface class.

for example you have a javascript function called "showThePopUp", you can call it in as3 with

ExternallInterface.call("showThePopUp");


If you want the popup be part of your application I suggest you building your own popup as a singleton class.

I Hope it helps!

Participating Frequently
March 20, 2011

Hey leleguera,

May I ask you a question?  You mentioned if you want the popup to be a part of your application to make the popup a singleton class.

I am curious to why you believe it should be a singleton class?  I'm not passing any judgement at all.  I'm merely curious to your reasoning.

Participating Frequently
March 22, 2011

Hi FeZEC,
I like curious people like me!

I have been inspired by the Alert Flex class.

In this way I have something that I could call everywhere without instantiating it around the code.

For example I create a singleton class called Popup, that has a show method
Popup.show(this, "my message");
where "this" is the reference of the display object I want to add/remove the popup.

However it is my reasoning, I really never tested it in a real project.

What do you think about?

Ned Murphy
Legend
March 20, 2011

Create a movieclip and control its visible property via whatever you intend to use to make it appear.  If you need the message to be dynamic, use a dynamic textfield.