Groups | Blog | Home
all groups > macromedia flash flashcom > september 2005 >

macromedia flash flashcom : how to read a file in main.asc?


forums.macromedia.com
9/30/2005 11:41:16 AM
Hello, I want to check if a user can connect with the flash server depends
on his password.

I use:

application.connect = function(newClient,user, password){

fh = fopen("data.txt,0);

//then I want to read the file to check if the user and password where in
this file

//to accept o reject the connection

}

But it makes an error: ReferenceError: fopen is not defined.

Which function may I use to solve the problem.

Thanks.

JayCharles
10/2/2005 4:08:11 AM
Nope... Flashcom doesn't have access to the file system, and can't read in
files like PHP would. You can't do what you're trying to do with Flashcom alone.

You would have to use remoting or amfphp as a bridge between your webserver
and your FCS.
AddThis Social Bookmark Button