Skip to main content
Participant
April 27, 2008
Answered

Using Actionscript 2.0 classes in Flash Media Server

  • April 27, 2008
  • 2 replies
  • 270 views
Hi,

I'm trying to make use of the new Flash Media Interactive Server 3.
I've written quite a few classes to make a game in a nice and object oriented way. All of them in Actionscript 2 style.

Now when I'm in my 'main.asc' (the file actually executed by FMS. I can't find a way to import these classes.
when using:
import package.Class;
The server can't resolve the package name.
When using:
load("dir/file.asc");
The server doesn't allow me to use the 'class' keyword.

Does anyone have any experience in this field? And is it even possible to use these kind of classes (wich work fine when using them in a client side SWF)

Thanks!



Bart
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer Newsgroup_User
    Hello :)

    FMS don't use AS1 but Javascript 1.5 customize by Adobe :) SSAS (Server
    Side ActionScript) isn't AS1 ;)

    But in SSAS we can create OOP class and use implementations like AS2 or
    AS3 with class, design patterns etc...

    Example in my opensource framework VEGAS based AS2/AS3/SSAS and this
    SSAS implementation :

    http://code.google.com/p/vegas/

    You can find all class of this framework :
    http://svn1.cvsdude.com/osflash/vegas/SSAS/trunk/src/

    For example.. you can use events model like AS3 with EventListener,
    EventDispatcher etc...

    http://code.google.com/p/vegas/wiki/VegasTutorialsEvents (all AS2
    example in this page work in SSAS with my framework)

    With classmapping we can creates a N-Tiers application based W3C events
    model...

    The SSAS for the moment use JS1.5.. i hope in the next version of FMS
    the JS2 or AS4 langage ;)

    EKA+ :)

    fmslove a écrit :
    > Server side scripting in FMS can only be done in AS1.

    2 replies

    Newsgroup_UserCorrect answer
    Inspiring
    April 29, 2008
    Hello :)

    FMS don't use AS1 but Javascript 1.5 customize by Adobe :) SSAS (Server
    Side ActionScript) isn't AS1 ;)

    But in SSAS we can create OOP class and use implementations like AS2 or
    AS3 with class, design patterns etc...

    Example in my opensource framework VEGAS based AS2/AS3/SSAS and this
    SSAS implementation :

    http://code.google.com/p/vegas/

    You can find all class of this framework :
    http://svn1.cvsdude.com/osflash/vegas/SSAS/trunk/src/

    For example.. you can use events model like AS3 with EventListener,
    EventDispatcher etc...

    http://code.google.com/p/vegas/wiki/VegasTutorialsEvents (all AS2
    example in this page work in SSAS with my framework)

    With classmapping we can creates a N-Tiers application based W3C events
    model...

    The SSAS for the moment use JS1.5.. i hope in the next version of FMS
    the JS2 or AS4 langage ;)

    EKA+ :)

    fmslove a écrit :
    > Server side scripting in FMS can only be done in AS1.
    April 28, 2008
    Server side scripting in FMS can only be done in AS1.