Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
Jean-Francois! #1
I?ve got a problem writing files on the server side withFlash Media Server 2.0.2 and 2.0.3.
Hello,
I?ve got a problem writing files on the server side with Flash Media Server
2.0.2 and 2.0.3. The same code was working fine with an older version of Flash
Media server (2.0.1).
You can see in my code that I?m creating the file and then I try to write in
it. With version 2.0.2 and 2.0.3, Flash media creates the file but can?t write
anything in it. Any ideas why? I?ve check the access rules but everything
seems to be ok (works with Flash Media 2.0.1).
I?m a little lost here, can you please help me???
-------------------------------------------------------------------------
record.file = new File(record.filePath + "/record.xml");
record.filePosition = 0;
if(record.file != null){
if(record.file.open("utf8", "create,readWrite")) {
var recordedData = "<recording><entries>";
// First writing to file
if(record.file.write(recordedData)) {
record.filePosition =
recordedData.length;
}
record.file.close();
}
}
// ... Later in the file...
function writeToFile(newEntry){
// Writing to file (updating)
var opened = record.file.isOpen;
if(!opened) opened = record.file.open("utf8", "readWrite"); //
Re-opening file
if(opened){
// Re-writing file ending
record.file.position = record.filePosition;
record.file.write(newEntry + '</entries>' +
record.statsString + record.infoString + record.configString + '</recording>');
record.filePosition += newEntry.length; // Updating
position in file
record.buffer++;
if(record.buffer > record.bufferLength){
// Write immediatly
record.file.flush();
record.buffer = 0;
}
} else {
trace("Error: Impossible to update file file (file
open failed).");
}
}
:confused;
Jean-Francois! Guest
-
Preparing Files for Media Server
Hello Experts! {b}We have created an SWF file in a program other than Flash. It pulls in some external videos that have been encoded as SWF... -
Flash 8 FLVPlayback support for Video Streaming withFlash Communication Server
i'm using FCS 1.5 for streaming video, recently i've tried the Flash 8 FLVPlayback component for streaming video but it's not working, i've found... -
Flash Media Server (Where To Store .flv files)
I am running the Beta of FMS. I have the software installed on C: and my wwwroot is on E: I need to use E: as my data drive. Is this possible? I... -
tracing asc files/server side scripts?
Hi, I'm fairly new to flashcom. I have been looking at some of the asc and as files on the server side. I've noticed the asc files have tracing... -
Client side and server side scripting problem
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve...



Reply With Quote

