The difference between the object and *?

What to use when declaring a variable as shown below:

private var someVar:*;

OR

private var someVar:Object;

What is the difference between the two? What makes the other better than the other in different situations? Any examples?

Thank.

+5
source share
2 answers

someVar:*is a special untyped var that contains a default value undefined, and

ObjectThe default value of var is equal null.

This is the only key difference.

+10
source

From Adobe Documentation

private var someVar:*;
private var someVar:Object;

ActionScript . true ActionScript 3.0, . . , , (*) , . , :

+9

All Articles