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.
Alert.show(total.toString());
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.