Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-26-2005, 07:56 AM
Junior Member
 
Join Date: Mar 2005
Posts: 1
Default How to read n write multiple value in text file?

Urgent! How to read and write multiple Value in Text File?


I m creating a Flash game and I m poor in FFish scripts and be confused with the (notepad and scores) samples provided here.

What i wan is the Flash Load several keys code from Text File .

Eg: In my Flash:
Key1 = 37 (Left)
Key2 = 39 (Rght)

and there is an option to change the Key1, Key2's value for flash.

For the First frame in Flash, i put a code
fscommand("ffish_run", "loadkeys");
n in options part of flash, i put
fscommand("ffish_run", "savekeys");


WHen come to SWF kit FFIsh Scripts part.
i hav no idea what to write.

var File = getAppDir() + "\\keys.txt";
DataFile.load(File);

........................................ ???
Please help me on the FFish Scripts....

(* When the text is loaded in flash, how to specify it to become a keycode number n not a text)


It is better if you have a sample files for me.
My email: wkwebsite@yahoo.com


Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.