Skip to main content
Participant
December 8, 2009
Question

Having trouble writing server side code

  • December 8, 2009
  • 1 reply
  • 261 views

I have installed FMS 3.5 (by download from Adobe's site)

I am trying to develop a simple chat application. It's quite strange that why the following error is producing

main.asc: line 4: SyntaxError: missing ; before statement: var __CONFIG__.isConfigLoaded = false;

The first few lines look like this

==========================================

load( "components.asc" );

var __CONFIG__ = new Object();

var __CONFIG__.isConfigLoaded = false;

==========================================

if I remove the "var" (AS1 style?) then it does not report any error. Can somebody please help me?

Kind Regards

Rakesh

    This topic has been closed for replies.

    1 reply

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    December 8, 2009

    You're attempting to write AS3 on FMS and it doesn't have any Flash Style AS interpreter for script.  It's plain Javascript as provided by the Mozilla Spidermonkey engine.  I recommend checking out the docs - particularly the Server Side Actionscript Guide.  That should help.

    A