dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FMS and AS3/Flex: calling a client-side method from a server script

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Posts
    1

    FMS and AS3/Flex: calling a client-side method from a server script

    In the following an example (in AS2) in which a server script (.asc) can invoke a method defined on the client side (client connected to FMS):

    client-side in AS2:
    Code:
    nc = new NetConnection();
    nc.connect(...)
    ...
    
    nc.myMethod = function(arg) {
    	...
    	return ris;
    }
    server-side:
    Code:
    application.onConnect = function(client) {
    	...
    	
    	resObj = new Object();
    	resObj.onResult = function(ris) {
    		...
    	}
    	
    	client.call("myMethod", resObj, arg);
    
    }
    My question is: in which manner with Flex and AS3 can I define a client-side method visible to FMS?
    Thanks

    Beaver

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    moved from CS3
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center