I've been trying to crack this one for a while. In the past I've had MM's
ASP.NET remoting gateway up and running using Cassini ( a minimal .NET
server ) but I'm now thinking there could be a way to achieve the same king
of thing using PHP and AMFPHP which might overcome some of the licensing
issues.
In the same way Cassini is a .NET application to run ASP.NET pages, PHP now
ships with a command line interpreter (CLI) that can be used to run PHP
scripts outside the bounds of a web server.
I think that if I can write an HTTP server using PHP sockets and get it to
run PHP scripts, AMFPHP could be used to allow flash remoting to work on a
local computer with nothing more than PHP required!!
Of course you can add database support using SQLLite ( uses flat text files
for persistent data ) and the whole thing should ( in theory ) be portable
between computers, meaning that you could bundle it in an installer and use
the PHP HTTP server as the tier that connects your flash application to the
filesystem and OS.
Once again, there might be some licensing issues to overcome. I did
consider using FlashORB's .NET solution but the pricing is as steep as MM's.
At the end of the day, all I want is a good way of connecting flash to the
desktop without doing XML parsing ( sockets ) or text parsing (
projector-based ActiveX style communication ). Flash remoting is the
answer. Just got to figure out how to do it (for free!).
Stephen
> anybody have some ideas?
Rooster60602 - 03 Sep 2004 14:18 GMT
Yeah, I'd already checked into things like OpenAMF, but I don't know the first
thing about PHP and want to get away from the browser environment...After
paying close to $1000 for Flash Remoting and checking into FlashORB (I'd heard
it had a more developer-friendly licensing agreement than Flash Remoting...NOT
true!), I've been looking very hard for something that enables AMF exchange
between Flash and .NET on a local computer without web server (FlashORB 1.5 is
supposed to enable this, but no bundling DLL with local app allowed...). It
looks like I'll have to write some sort of wrapper that passes the data over
sockets, but don't know where I can get the specs on AMF format to do data type
conversions, etc. Any ideas?
Rooster60602 - 12 Sep 2004 16:53 GMT
Does MM monitor this forum? You guys have any ideas?
Robert Reinhardt - 14 Sep 2004 01:56 GMT
If you're trying to load AMF data on a distributable media (CD-ROM, etc.), you
can try writing the data to a FLV file, and then loading that FLV file with
Flash Player 7. The data event(s) on the FLV file will invoke and transmit the
AMF data to your movie. I've created a component (first draft, works, but I
don't have any documentation) that can do this: takes data from your Flash
movie, saves it FLV, downloads the FLV so you can use with a Flash movie to
consume that same data.
-Robert
Stephen Beattie - 29 Oct 2004 17:49 GMT
I'm interested in how this works Robert. Do you have an example ?
> If you're trying to load AMF data on a distributable media (CD-ROM, etc.), you
> can try writing the data to a FLV file, and then loading that FLV file with
[quoted text clipped - 5 lines]
>
> -Robert