Yes - but - why bother omitting it?

It's only a few characters you're saving - the word :Object. If later
down the line you decide to change compilers and go with MTASC (or
perhaps port your code to AS3) you'll have to trawl back through all
the code putting those missing type definitions back in...

Ian

On 6/15/06, Steven Sacks <[EMAIL PROTECTED]> wrote:
You could also leave off the typecasting on the argument.  You don't have to
type your arguments in AS2, and the compiler won't complain.

If the methods inside the argument check what type of argument it is, then
it's pretty apparent to anybody reading the code why there is no type on the
argument.

Typing has no effect except for the debugging and readability.  Flash gets
no speed benefit from strict typing like other languages do.
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to