Skip to main content
Participant
Dec 8, 2009 1:11 PM UTC
Question

Having trouble writing server side code

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 is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    Dec 8, 2009 5:30 PM UTC

    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

    Translate