So I'm teaching Actionscript 2.0 to second year college students, and I've had
to explain something very simple about datatyping. I've looked all through
Moock's Essential Actionscript 2.0, all the help files, all of the Flash MX 04
books I have plus a few in friends' and colleague's libraries, and I've yet to
find a satisfactory answer to this seemingly simple question:
Why it is illegal to combine both a path declaration and a datatype declaration
in the same expression" i.e.:
// legal - path declaration
this.clip1.myVar = 42;
// legal - datatype declaration
var myVar:Number = 42;
// illegal syntax error
this.clip1.myVar:Number = 42;
Does any one know the answer to this, it is really bugging me...
____________________________________________
Joseph Balderson
Interactive Media Design & Development
http://www.joeflash.ca
Faculty Member, Flash Development,
Humber College School of Media Studies
http://mediastudies.humber.ca
____________________________________________
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders