Flash / Flex / ActionScript/Statement/is — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 12:19, 26 мая 2010
check an item"s datatype using the is operator
<source lang="java">
package{
import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var quantity:int = 5; if (quantity is int) { trace("Yippee. It"s an integer."); } } }
}
</source>