The compiler only catches strict typing issues at compile-time, not
run-time.  It doesn't know what this.jaar is (because it's being loaded
in at run-time) so it doesn't catch that you're loading a string into
it.  Since AS2 isn't actually strict (just for the compiler's sake), you
can put strings into variables you type cast as Number.  You need to
type cast the strings as numbers when they load in.

var jarr:Number = Number(this.jaar);

etc.

HTH,
Steven

_______________________________________________
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