Menu

#1 MTASC

version-1
open
nobody
None
3
2008-06-11
2007-07-19
monk.e.boy
No

Need to support MTASC ( http://www.mtasc.org/ ), MTASC does not use '#include' so we need to remove all instances of this.

I think #Include functions should go into ChartUtils.

monk.e.boy

Discussion

  • monk.e.boy

    monk.e.boy - 2007-07-19
    • priority: 5 --> 3
     
  • Jokin Cuadrado

    Jokin Cuadrado - 2007-09-21

    Logged In: YES
    user_id=1890256
    Originator: NO

    I made some changes to remove compile errors with mtasc, however I' got stuck with LoadVars and the loading of the main movieclip.

    there are mainly three type of errors:
    - redefinition of variables (mtasc is more strict than the macromedia compiler, as listed on http://www.mtasc.org/#comparison\)
    - declaration of arrays without "new" keyword.
    - references to this, mtasc compiler don't find the type on compile time, also main class should in theory extend loadvars to function(this) that expect a loadvars variable works. maybe will be better to maintain a loadvars reference and pass it to the function that need it instead of relying in this. This will require some structural changes.

    I have changed the necessaries for open-flash-chart.as and his dependencies compile, but still left some of files.

    There is also another problem with string type, in the mtasc library is not defined as dinamic, so it can't be extended and would break the compiler because it not recognizes replace as an string type function.
    there are many posible solutions:
    -change the definition in mtasc library to dynamic, would break the compilation with mtasc actualization and must be made from everyone who downloads open flash chart
    -extend string class with "betterstring", and use this type instead string class.
    -made a strreplace function and use it instead a class function.

    I will try to fix the loading problem, so i can make a lite mtasc compiled version, I will post the code if I achieve something useful

     
  • John Vandervort

    John Vandervort - 2008-06-11
    • milestone: --> version-1
     

Log in to post a comment.