MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 222

Actionscript language reference
Table of Contents

Advertisement

function randomNum():Number {
return Math.round(Math.random()*10)%3;
}
}
Finally, in another AS file or FLA script, the following code invokes the
an instance of the RecordSet class. It defines
.
sortRows()
import RecordSet;
var myRecordSet:RecordSet = new RecordSet();
try {
myRecordSet.sortRows();
trace("everything is fine");
} catch (e:RecordSetException) {
trace(e.toString());
} catch (e:MalformedRecord) {
trace(e.toString());
}
See also
Error
class,
throw
222
Chapter 5: ActionScript Core Language Elements
,
,
class
extends
blocks for each type of error that is thrown by
catch
method on
sortRows()

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flex

Table of Contents