[worldKit-dev] errors in compiling source code

Mikel Maron mikel_maron at yahoo.com
Wed Nov 21 04:24:21 PST 2007


MTASC is stricter than the Flash compiler, so you are seeing variable type errors, and missing variable declarations. It would be great to have these fixed -- most of these can probably be fixed with just some casting.

worldkit.fla is the file the Flash compiler loads. It includes all the as libraries, and some images used internally. In its actions, it simply creates a worldkitMain instance, and calls load. There are ways to replicate this stuff in MTASC and the other tools, though I forget the specifics.

If these two problems get fixed, we can then have pure open source development, with all the advantages.

-Mikel

----- Original Message ----
From: Sige <sigenz at yahoo.co.nz>
To: worldkit-dev at lists.brainoff.com
Sent: Wednesday, November 21, 2007 1:39:02 AM
Subject: [worldKit-dev] errors in compiling source code


Hi all,

I am trying to compile the source from svn using mtasc-1.13, but got
 some errors:

1. type errors
C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitRSS.as:491:
 characters 28-31 : 
type error String should be Number (source code:
Points[p].tracks(Points[p-1].mc[ Points[p-1].clipname]._x,
 Points[p-1].mc[ Points[p-1].clipname]._y);
)

C:\Program
 Files\mtasc-1.13/std/com/brainoff/worldkitInteraction.as:515: characters 1-8 : 
type error Local variable redefinition : geo

C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitImages.as:55:
 characters 9-15 : 
type error Unknown variable length (code:  if (length(conf.dayimg) >
 0))

C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitImages.as:488:
 characters 20-21 : 
type error Unknown variable w

C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitImages.as:522:
 characters 26-71 : 
type error Date should be Number

C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitRSS.as:221:
 characters 6-15 : 
type error String has no field href


2. invalid expresion
C:\Program Files\mtasc-1.13/std/com/brainoff/worldkitGPX.as:31:
 characters 5-75 : 
parse error Invalid Expression (source code:
 new worldkitGPX(main, mc, s, layer, conf.gpx[s].url,
 conf.gpx[s].cats);
 
3. unknown variables

C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:63: characters
 10-16 : 
type error Unknown variable length

C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:70: characters
 18-27 : 
type error Unknown variable substring

C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:82: characters
 21-27 :
 type error Unknown variable length
 
C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:86: characters
 8-17 : 
 type error Unknown variable substring
 
 C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:131: characters
 7-8 : 
 type error Unknown variable i
 
 C:\Program Files\mtasc-1.13/std/com/brainoff/RegExp.as:155: characters
 16-20 :
  type error Unknown variable root

.......

I suppose those are caused by a compiler version problem, so what
 version of mtasc should be used? 

By the way, what is the file worldkit.fla used for?

Thanks a lot

Sige







Send instant messages to your online friends
 http://au.messenger.yahoo.com 
_______________________________________________
worldkit-dev mailing list
worldkit-dev at lists.brainoff.com
http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com






More information about the worldkit-dev mailing list