read and write txt file or cookies out of flash 8

FLASH

    Next

  • 1. Print to scale
    We are developing tools for space planning and our clients are requesting that we be able to print to an exact scale from the SWF. ie: 1/4" = 1'-0" Does anyone have any ideas on how this might be accomplished? Thank you. Phil
  • 2. Inspectable type="Array"
    Are there someone who's familiar with the Inspectable meta-tag? I'm having trouble using the Inspectable meta-tag with the type set to Array. During design time the parameters are set correctly, but by runtime the parameters aren't read at all. See the folowing example: private var __dataLabels : Array; [Inspectable (name="Data labels", type="Array", defaultvalue="label1,label2")] [ArrayProps(elementType="String")] public function set labels (aLabels : Array) : Void { __dataLabels = aLabels; } Changing the type to String - just to check - aLabels has the value: label1 Am I doing something wrong or is it just one of the "funny" things (a bug??) One deal with, when writing components i Flash? Hope someone is able to help me. Peter
  • 3. Play to and stop
    I have a button that I have set to play on release if the current frame is less than 118. How can I make it stop at 118 without having to click again?
  • 4. accordion button block
    hi all this is my accordion script ac_comp.createChild('login', 'login', {label:'welcome'}); ac_comp.createChild('general', 'general', {label:'step one'}); ac_comp.createChild('shipping', 'shipping', {label:'step two'}); ac_comp.createChild('payment', 'payment', {label:'step three'}); how can i block the last three buttons??????
  • 5. disabling timer in the next frame of the movie clip
    hi guy, i'm using the below script, it still work if i go to the next frame in a movie clip. how can i make is disabled in the next frame. I've tried "delete this.onEnterFrame". but doesn't work i.e if i go to next frame with the button before 15 second, it will go to next frame once the 15 second are over Any help will be apprecited thanks in advance //frame#1 actionscript - function TimeOut(T){ this.onEnterFrame = function(){ dd = new Date(gettimer()); display.text = Math.abs(dd.getSeconds()-T)+" secs remaining"; if(dd.getSeconds() > T){ //display.text = "Time is Up"; nextFrame(); delete this.onEnterFrame; }};}; gameTime = 15; // seconds TimeOut(gameTime); //stop(); pandey

read and write txt file or cookies out of flash 8

Postby deerowbear » Thu, 26 Jan 2006 23:35:53 GMT

I was wondering if anyone had any knowledge of writing files out of flash and 
then reading them back in via actionscript or javascript with in flash. If 
anyone knows could you please help. I found this as a starting point but any 
other help would be appreciated. 


 /////script///////
 on (release) {
 if (_root.cookieName.length>=1 && _root.cookieValue.length>=1) {
 getURL("java 
script:setCookie('"+_root.cookieName+"','"+_root.cookieValue+"')", "");
 //_root.done = "[DONE]";
 }
 }
 //////////////////


 daniel 


Re: read and write txt file or cookies out of flash 8

Postby Scally_Ally » Thu, 26 Jan 2006 23:41:08 GMT

Have you tried searching for information about shared objects??

These are flash's own cookies (kind of) and they work in a very similar way to your average cookie.

Re: read and write txt file or cookies out of flash 8

Postby Ronak Bhagdev » Thu, 26 Jan 2006 23:47:44 GMT

Hi,
Go to this link
 http://www.**--****.com/ 
It will give all the information what u need like what is shred object? How shared object works?

Re: read and write txt file or cookies out of flash 8

Postby deerowbear » Thu, 26 Jan 2006 23:49:49 GMT

Thanks for the replies. I will read up on the shared objects in flash and try to use this method.

daniel

Re: read and write txt file or cookies out of flash 8

Postby deerowbear » Sun, 29 Jan 2006 00:54:13 GMT

ok...did some reading and figured out how to write a .sol file from flash using 
SharedObjects. Works really well except I am not sure how to define the path 
where the .sol will be written to.

 //////////////////code used on top level frame of the movie//////////////////
 stop();
 user = SharedObject.getLocal("user_profile");
 heater = user.data.heater;
 
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////
 ////////////////////////////////////code used on a 
button///////////////////////////////////
 on (release) {
 	user.data.heater = heater;
 	user.flush();
 	_root.gotoAndStop(1);
 }
 
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////

 I have two files and want both files to read and write from the same .sol 
file. Please help.

 thanks d


Re: read and write txt file or cookies out of flash 8

Postby NodeNode » Fri, 10 Feb 2006 08:11:56 GMT

I've been trying to sort this out too and found this article useful
 http://www.**--****.com/ 

Re: read and write txt file or cookies out of flash 8

Postby John Pattenden » Fri, 10 Feb 2006 08:41:34 GMT

if you are making a projector then you can use mProjector's mFile 
methods to read and write files.

 http://www.**--****.com/ #mFile

Similar Threads:

1.NEED HELP (writing to txt file-reading from txt file)

how can i send to txt file from flash
 and
 how can i read to txt file from flash 
 since 5 days i m asking that but anybody wont help flash dont get it ?
 i will use it with php for links.how can i use codes in action script 2.0


2.Read/Write to a file? (*.txt)

Help me!
Can I read the data from a file *.txt to a array  x[] in Flash?
And can i write the data from a array x[] in Flash to a file *.txt?
How?
I thanks.

3.write to txt file in a flash proyector (.exe)

I have a flash proyector in a CD-Rom 

It's  posible  to write to a txt file in the local hard disk ?


4.write to a file read from a file

For some reason this subject eludes my understanding and honestly, I feel, it 
also eludes a good tutorial.  All I want to do is store a variable to a text 
file by clicking a button and then click another button to show the variable.  
I would want two text boxes, an input and a dynamic.  The user enters something 
in the input and clicks a button called "store" and what the user inputed is 
written to a text file.  When the user clicks 'load', what's stored in the text 
file shows up in the dynamic text box.  Can someone please explain this to me 
very specifically, ideally with an example .fla?  Thanks a ton.

5.Reading and saving simple TXT file from flash pla

Hello guys,
 I'm very good in action script for MX, but I have stucked in one simple thing. 
I have some games on net, where I store results over asp directly to access 
database. Now I have to palce those games on CD, and need to store results on 
local hard disk as simple text file. I have to suppose that user doesn't have 
server installed, and to be offline, so no use of asp files... Can it be done??

6. Reading a TXT file from a Flash Movie

7. writing and reading a file from Compact Flash (beginner)



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 99 guest