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?
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)
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.
Don't see what you're looking for? Try a search.
|