Comunidad de diseño web y desarrollo en internet online

como escribir(crear) un fichero en el hdd...

Citar            
MensajeEscrito el 11 Abr 2006 09:24 pm
hola:
necesito escribir(crear) un fichero en el hdd de la maquina donde se esta ejecutando un swf, es posible? hacer esto.

en caso de que el flash dentro de sus librerias no tuviera nada defino para esto, se puede utilizar el
fscommand()

gracias

Por flash_girl

1 de clabLevel



Genero:Femenino  

firefox
Citar            
MensajeEscrito el 12 Abr 2006 06:16 am
Usa los famosisimos shared objects :
aqui va un ejemplo : ojo , pestaña y ceja ... :) :)


var davo:SharedObject = SharedObject.getLocal("davo");

davo.data.nombre = "okocha"; // luego borras esta linea
davo.data.apellido = "rivas"; // luego borras esta linea , ya esta grabada en tu HD :lol:

trace (davo.data.nombre);
trace (davo.data.apellido);

:P

Por davo25

183 de clabLevel



 

Lima - Peru

msie
Citar            
MensajeEscrito el 12 Abr 2006 07:53 am
No hay forma (una y mil veces más lo diré, usad el buscador por favor que esto ya se ha tratado antes)
Por temas de seguridad, de forma nativa en flash NO puedes escribir archivos (imagínate escribir un system.ini por ejemplo!!)

Hay varias opciones :
- Usar SharedObject (que son como cookies)
- Usar programas de terceros, como MDM Zinc, Screenweaver,... ellos ya tienen sus funciones para escribir archivos al disco
- Crearse su propio programa de tercero y ejecutarlo con fscommand

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

clabbrowser
Citar            
MensajeEscrito el 12 Abr 2006 11:30 am
Ya pero alguien sabe como se hace con Screanweaver?
Mira que he pasado tiempo intentándolo...

Por Zah

BOFH

4290 de clabLevel

27 tutoriales
5 articulos

  Bastard Operators From Hell Editores

Zaragoza, España

firefox
Citar            
MensajeEscrito el 12 Abr 2006 11:33 am

swFile.saveString

Availability:
Flash Player 6.
Screenweaver.

Usage:

swFile.saveString( file, string, append, callback, scope );

Parameters:
filepath [string] specifies the filepath for the output text file.

stringToSave [string] that should be saved to file.

append [boolean] this boolean indicates if the string to write should be appended to the file specified, or not. Set to true to append, set to false to (re)create the file specified.

callback: [method] that should be fired once saving the string to file is complete. The callback receives a boolean indicating if the save was successful. This parameter is optional, but required when specifying the 'scope' parameter.

scope [object, optional] that will be "this" in the callback method.

Returns:
Executes a callback function, see parameters for details.

Description:
Saves a string to a text file.

Example:

swFile.saveString( "C:\\text.txt", "I'll be stored in a file.", true );

The last argument indicates that we want the string to be appended to the 'text.txt' file. Please note that his argument is mandatory when also specifying a callback function! Set it to false to (re)create a file that only contains the string specified.

When saving a string to a text file with this function, all special character information will be truncated. To save a string containing special characters, use the swFile.saveUnicodeString method.


Más info >>> http://www.screenweaver.org/documentation/3/help/swhelp.html

Por _CONEJO

BOFH

7639 de clabLevel

17 tutoriales
21 articulos

 

clabbrowser
Citar            
MensajeEscrito el 12 Abr 2006 01:15 pm
screanweaver.org, no .com. Gracias, señor conejo ^^ , la ayuda de mi programa está algo desactualizada ¬¬

De todas formas no logro hacer que funcione con flash8 aparece en blanco (y eso que con click derecho pone acerca de flash 8.5), pero sí con el 6. Quizá tenga que ver con un archivo ocx, pero cambiandolo no hago que funcione.
En fín, Investigando...
[edit] Hay que descargar un archivo http://screenweaver.org/downloads/screenweaver_builder_patch.rar [/edit]

Por Zah

BOFH

4290 de clabLevel

27 tutoriales
5 articulos

  Bastard Operators From Hell Editores

Zaragoza, España

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.