tags:

views:

274

answers:

1

Hi, How can I alert an integer value in flex. I have a variable called total which is an integer.

If I try to alert it using

var total:int=myTest.length;
Alert.show(total);

it throws an errors saying that

1067: Implicit coercion of a value of type int to an unrelated type String.

the show method accepts only string values. How can I alert this int value?

Actually, what I want is to know the value stored in the total variable.

+3  A: 
Alert.show(total.toString());

reference

Svetlozar Angelov
Thanks a lot....
Angeline Aarthi