Groups | Blog | Home
all groups > macromedia flash flashcom > march 2006 >

macromedia flash flashcom : Flashcom server-side script


dataxa
3/18/2006 12:00:00 AM
I would like to know how dose clients SFW gets the server-side script. Swf
succesfully connects the server. I know that the main file is main.asc which
must be located in app directory - which i have. Main.asc has 1 line : var
version = "1.0";

Now if i start swf then it dosn't get that variable.

What's wrong?
JayCharles
3/18/2006 5:00:44 PM
The .swf doesn't receive the code in the .asc file. Server side actionscript
(as the name applies) is what is used for programming server operations. None
of the code or variable data in your asc file is automatically passed to the
client.

If you want to pass data from your asc file to your .swf, you will need to use
one of the following:

1. A shared object
2. A remote function call (netconnection.call)
3. A remote send (netconnection.send or netstream.send)
dataxa
3/19/2006 12:00:00 AM
JayCharles
3/20/2006 4:38:25 AM
With FCS 1.5 you need to use remoting or AMFPHP (amfphp.org) to connect to your
PHP application. There are some examples at flash-db.com

If you're using FMS 2.X, you can use remoting as described above, or your can
use LoadVars just like you would in client side AS.
AddThis Social Bookmark Button