View comments | RSS feed

confirm()

Availability

Flash 8.

Usage

confirm ( strAlert )

Parameters

strAlert A string that specifies the message you want to display in the Alert dialog box.

Returns

A Boolean value: true if the user clicks OK; false if the user clicks Cancel.

Description

Method; displays a string in a modal Alert dialog box, along with OK and Cancel buttons.

NOTE

 

If there are no documents (FLA files) open, this method fails with an error condition.

Example

The following example displays the message "Sort data?" in an Alert dialog box:

confirm("Sort data?");

See also

alert(), prompt()


Flash CS3


Comments


halfasleeps said on Oct 22, 2007 at 11:30 AM :
Is there a class or something that needs to be initiated before this can be called?
Is this for actionscript 2.0 or 3.0?

I tried opening a new flash document and pasting:
confirm("Sort data?");
into the actions but it doesn't do anything.

I cannot find any documentation on the "confirm" anywhere else either.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00003818.html