next up previous contents
Next: isNAN Up: Methods Previous: unescape   Contents


eval

Description

Evaluates FFish Script code.


Syntax

eval(expression)


Parameters

expression
A string containing the name of a variable, property, object, or movie clip to retrieve.


Returns

The eval function allows dynamic execution of Ffish Script source code and returns the result of the expression.


Example

value = [1, 2, 3];
x = 1;
eval("value" + "[" + x + "]"); //returns 2




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.