|
Home > Archive > Macromedia Flash Server > April 2006 > Re: FlashComm Digest, Vol 16, Issue 26
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: FlashComm Digest, Vol 16, Issue 26
|
|
| Keith Istler 2006-04-24, 7:59 am |
|
Have you considered file permissions and where the your flash comm
installations home/working directory is? I see that you only give a
filename and not a full path. I'd try using a full path to a directory
where you know you have write permissions.
-Keith
p.s. I'm not a flash programmer but I have setup fms and have played
"guess what this error is"
flashcomm-request-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org wrote:
>Send FlashComm mailing list submissions to
> flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>or, via email, send a message with subject or body 'help' to
> flashcomm-request-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>
>You can reach the person managing the list at
> flashcomm-owner-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of FlashComm digest..."
>
>
>Today's Topics:
>
> 1. problem on operating the File class (xuming lu)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 22 Apr 2006 03:42:18 +0800
>From: "xuming lu" <luxuming-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
>Subject: [FlashComm] problem on operating the File class
>To: flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>Message-ID: <BAY110-F11C090AA626D2F2AA2803FD6BB0-MsuGFMq8XAE@public.gmane.org>
>Content-Type: text/plain; format=flowed
>
>Hi. I got a problem which has blocked my project several days. I want to
>create simple log file every user,here is my code in main.asc:
>application.onAppStart = function()
>{
>............. Create infoLog variable
>var infoLog = new File("infolog.txt");
>infoLog.canAppend = ture;
>..............
>}
>application.onConnect = function(newClient, name, password)
>{
>.................
>if (infoLog.open( "infolog.txt", "append") ) {
>SysDate = new Date();
>Systime = formatTime(SysDate); //format the time
>infoLog.writeln("Authorized user:"+ name + " login the system at " +
>Systime);// Write to the file?
>infoLog.close();
>}
>.....................
>}
>
>But when I added this code to main.asc, it just doesnt work, even the whole
>application doesn't work at all. Anyone can point out what's the problem? Or
>how to use File class in server?
>
>
>3x
>
> ________________________________________
_________________________
>Express yourself instantly with MSN Messenger! Download today it's FREE!
>http://messenger.msn.click-url.com/...1ave/direct/01/
>
>
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
|
|
|
|
|