Hi Kerry,
I understand you got an error not typing your variable in 'var clip = e.target;'
I tried 'var type = "myType";', which gave no error.
Appearantly in some cases you _need_ to type a variable, in other cases you don't (!?) In my case Flash automatically assigns String as the data type to 'type'. (maybe only for primitive data types?) Because in your case somehow you need to type the var, but don't know yet the actual type the * comes in handy.
my 2ct
Willem

Op 1-jul-2008, om 12:41 heeft Kerry Thompson het volgende geschreven:

Geografiek wrote:

It's a wildcard I think. clip can be of any type.

That's what I suspected. What is the advantage, then, of using the wildcard,
rather than an untyped variable?

I don't mean to sound argumentative--I'm just trying to understand one of
ActionScript's nooks and crannies.

Cordially,

Kerry Thompson

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to