Skip to main content
September 22, 2010
Question

What is the "version 2 components framework" ?

  • September 22, 2010
  • 1 reply
  • 446 views

I am trying to use the following function within my server-side app:

application.onConnectAccept() = function() {

     // ...

}

But I get the following error: application.onConnectAccept is not a function

Here is the documentation for the function:

http://www.adobe.com/livedocs/flashmediaserver/3.0/hpdocs/help.html?content=00000245.html#107504

It states that this function is for use with "version 2 components only."

My question is... What is a version 2 component? This function is contained within the "Server-Side Actionscript Language Reference" guide. I should be able to use this function within my server-side app, right? How do I enable "version 2 components?"

Thank you.

    This topic has been closed for replies.

    1 reply

    September 22, 2010

    The reason for the error is that your syntax is incorrect.

    application.onConnectAccept() = function()

    ...should be

    application.onConnectAccept = function()

    As to the question about the components, there is a set of communication components that were developed ages ago (for Flash mx), and there is a server side framework to support those components. The client side components haven't been updated in years. As i recall, the version 1 components were written in AS2, and the version 2 components were updated to use the flash MX UI components... but it's been ages... so don't quote me on that.

    September 22, 2010

    Thank you. I was misunderstanding the documentation. It sounded like it was saying that there was a special "Version 2 Components Framework" specifically for server-side actionscript, when in fact all it was saying is that certain functions are in place to support legacy version 2 components on the client-side.