-
Opening Dialog box in Flash
Is it possible to make a button in flash that will make a system dialog box appear when pressed? For example, to tell the user that an error has occured.
Also, will this feature work for both Windows and Macintosh?
TIA
-
Please, close your eyes for a moment and meditate on the security implications such a "feature" would have!
Still want it?
-
Perhaps I was too vague.
I'm fairly certain it is possible to do this using dreamweaver. For example, some websites disable the use of right-clicking (this is is not what I'm trying to do). When you right-click, a dialog box appears saying something along the lines of "That feature is disabled." This, is more or less what I'm trying to accomplish. It is not for vindictive purposes.
-
In that example a Javascript-dialog pops up. That's a little tricky, but it can be done with Flash, like so:
getURL("javascript:void(alert('error'));","_self") ; // can't actually test it, right now ...
I wouldn't recommend this for something as crucial as an error message though. After all, you have no guarantee that Javascript is turned on ... Aside of that, it should work on any browser on any platform.
BTW: Javascript-dialogs always identify themselves as javascript-dialogs. Just to make perfectly clear they are NOT system dialogs.
-
Thanks. That's exactly what I was looking for.
I apologize for the confusion.
-
One more quick question:
How do I make it so that the alert message can be written on two or more lines?
-
-
\n does not appear in the alert box, but it also does not create a line break for some reason.
I found this URL, but it does not seem to be working for me.
Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|