Skip to main content
Participating Frequently
November 11, 2006
Question

Syntax Check on SS Actionscript

  • November 11, 2006
  • 2 replies
  • 349 views
One of the notable things about FMS seems to be its lack of useful error messages.

I've found that if if my server-side scripts contain a simple language syntax error that
the script will simply abort leaving no trail of what happened or why. The logfiles have
been useless to me in nearly all cases.

Is there a way to check the syntax of your server-side .asc file before you run it?

the 'far' compiler is comical. It can be used to check for a syntax error but instead
of telling you what went wrong, you get a lengthy stack trace detailing the runtime
libraries on your system. Nothing about your code or what happened. So, if your
code is good, far works. If there is a problem, it croaks badly. Never a reason given.

Better yet, when your script crashes and is ejected by the server, is there any
way to find out what happened?

    This topic has been closed for replies.

    2 replies

    Inspiring
    November 12, 2006
    Hello :)

    SSAS = javascript 1.5 and not AS1 :)

    To test your code you can use Unit Tests ... it's the best solution :)
    Use the app console to trace the logs but use a Unit Test library to
    test all your code is better :)

    I use ASTuce to test my applications with my opensource framework SSAS
    "VEGAS"

    http://vegas.riaforge.org/

    http://svn.riaforge.org/vegas/SSAS/trunk/src/

    in the directory library/ i use Core2 and ASTuce ! Look the directory
    unittests/ to see examples of tests....

    EKA+ :)





    JayCharles a écrit :
    > Since SSAS is actionscript 1, you could use Flash's syntax checker. Since it's
    > AS1 you won't have type checking and such, but you'll know your syntax is
    > correct.
    >
    > You can also watch the live log in the FMS app console. It will provide some
    > messages in response to syntax errors.
    >
    November 11, 2006
    Since SSAS is actionscript 1, you could use Flash's syntax checker. Since it's AS1 you won't have type checking and such, but you'll know your syntax is correct.

    You can also watch the live log in the FMS app console. It will provide some messages in response to syntax errors.