For the past few days I have been trying to find out how to use the FMS http admin call broadcastMsg. In the Adobe docs it states:
Required Arguments: scope, method
Optional Arguments: arg0, arg1, arg2 ...
Sample URL: /admin/broadcastMsg?scope="App:myApp"&method="myMethod"&arg0="foo"&arg1="bar"
Well that's all fine and dandy.. but there is no other documentation. Working with a friend of mine, Fernando FlÃ³rez, we were able to get it working.. more him than me.. :-)
So the secret? Well I kept trying something like so:
And I kept getting a:
<timestamp>Fri Mar 7 12:06:14 2008</timestamp>
Baffled as I was I kept trying..but to no avail. I read a writeup Fernando did on his blog.. here:
Well.. I contacted him and neither of us could crack it.. until..
Fernando had gotten this working for a client and so upon further introspection of that project the following was revealed:
worked! No more error messages.. but success. So the word "App" in the http command is a reserved word. It's just a matter of forming it properly.
This method will call a clientside method called myMethod that is exposed through the NetConnection.
So.. reserved words are:
With those you can successfully target specific applications on your FMS instance.
I hope that helps someone out.. seeing as docs to this are far and few between.