Skip to main content
Participant
November 14, 2009
Question

Invoking external AS from Main.asc?

  • November 14, 2009
  • 1 reply
  • 492 views

Hi all,

I'm hoping anyone can point me in some intelligent direction.

I have a main.asc in my FMS3.5 application. I'd like to be able to import things like AS3Crypto, com.adobe.serialization, etc, to be used in main.asc.

However, there seems to be no clear way to do so.

2 possibilities come to mind:

1) I'm not seeing something in the docs that is super obvious.

2) I'm attempting to use server-side AS for something that it is not intended for..

All I'm trying to do is verify url signature in my onConnect, however, I can't even get access to simple things like byteArrays, let alone invoke AS3Crypto. I can load other ASC files via global load() method, but this seems to bleed to death if I attempt to convert complex AS3 classes to ASC.

Is it intended that this sort of functionality be soley offloaded to another application via webservice/whatever? Or am I simply looking at this all wrong?

Any leads or advice would be tremendously appreciated.

Thanks all.

j

    This topic has been closed for replies.

    1 reply

    November 15, 2009

    Pardon me if I am trivial here but server-side AS is plain simple AS-1 code to me so loads of things integrated with AS-2 & 3 versions are not avaible.

    Using services like AS3-Crypto will need loads of rewriting to make them compliant with AS-1 capabilities.

    Sorry if I misunderstood your need, hope I get useful here for you.

    Regards,

    IFZen

    Participant
    November 15, 2009

    Thanks IFZen, I'm finding that you are correct. I have ported the sha256 stuff I need to simple AS1, and think this will work, but what I'm being tasked to do seems like it is NOT the role that serverside AS is intended to play.

    November 16, 2009

    I am quite a beginner with FMS but I share that first impression. FMS is good at it's first tasks : sharing and broadcasting signal thru TCP connections. but for the moment you need to compute something else it is quite hard to choose between coding into FMS AS-1 or going into external systems, knowing the fact that communicating with outsider is not that easy for FMS.