Finally, there is a bug in Flash MX 2004 & 8; you can't datatype like this:

myVar:Number = 42;

but you can do this:

var myVar:Number = 42;

----- Original Message ----- 
From: "Chris Velevitch" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Monday, October 31, 2005 12:30 AM
Subject: Re: [Flashcoders] Strict Datatyping Question


On 10/31/05, Joseph Balderson <[EMAIL PROTECTED]> wrote:
> Why it is illegal to combine both a path declaration and a datatype 
> declaration
> in the same expression" i.e.:
...
> // illegal syntax error
> this.clip1.myVar:Number = 42;

This illegal because myVar has already be declared in the definition
of the type of clip1.

Also, you have used the phase 'path declaration'. This is an oxymoron.
Declarations only appear in a class definition, paths are references
to the objects/types of interest.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

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

Reply via email to