PDA

View Full Version : trouble with send(LoadVars)


speedlemon
07-24-2004, 06:01 PM
hello. yesterday, i read a tutorial on how to load strings from a text file and display them in a dynamic text box. today, i wanted to go one step further and be able to edit it, and save it. so almost like a very simple text editor. load, edit, save. ok. so i just dont understand how to send it. i dont understand the method parameter. so if someone could please explain how i could do this, that would be so :cool: awesome. :cool:

speedlemon
07-25-2004, 11:08 PM
ok, since noone's replied yet? i decided to look again at google. i found this way, and it seemed easy enough
fscommand ("save","file.txt")
but for some reason, it didnt work either. either did
fscommand ("messagebox","foobar")
so this brings up another question- any idea fscommands arent working? and once i figure that out, ill be able to save my file hopefully.

speedlemon
07-26-2004, 03:28 PM
(soary for the triple post)
i read somewhere that fscommands only work in a standalone projector. i may have read it wrong.. is this true? i just really want this thing to work and i cant continue in with this project until i figure out a way to save. anyone know of any other ways to do this?
ill continue looking on google...

speedlemon
07-26-2004, 06:46 PM
(soary for the quad post)
i just read that the 'save' fscommand is no longer works because macromedia got rid of it in flash player 6 for security reasons? so i guess i cant do it that way. and since no one wants to help me, i think ill just move along...

binkyboo
07-26-2004, 07:15 PM
Maybe this tutorial will help. I'm not sure if Flash player 7 supports the function.

http://www.actionscript.org/tutorials/intermediate/save_a_local_copy_of_file/index.shtml

speedlemon
07-27-2004, 01:18 AM
thank you. im reading it now.
btw- anyone know how to make a link in your dynamic text
for example: i load this text into the dynamic text box
'click here for payment options.'
how can i make 'here' be a link to another place or file?

speedlemon
07-27-2004, 02:26 AM
im using Flash mx. is
MMSave (file, "files.txt")
supposed to work in that? or is that in mx 2004?
because when i tried it in mx, it didnt turn blue or anything and well... didnt do anything actually.

binkyboo
07-27-2004, 10:06 PM
This is an undocumented Flash MX function. What I don't know is if Flash Player 7 supports it.

CyanBlue
07-27-2004, 10:11 PM
I don't think it works in FP 7 anymore...
I am not even sure if it works in higher versions of FP 6...

Hey, speedlemon... Please create a new thread if your quesiton is totally different from the original question... :)

binkyboo
07-27-2004, 10:20 PM
Ok, I inserted this code into both Flash MX and Flash MX 2004 files -

mystring="This is some text that i want to save locally";
MMSave(mystring,"mystring.txt");
trace (MMSave(mystring,"mystring.txt"));

Both trace outputs were 'true'. I ran a search on my local c: drive and found 'mystring.txt' on my both of my boxes at work.

binkyboo
07-27-2004, 10:26 PM
As usual, you're correct Jason. Although the output was 'true' while testing in MX 2004, I was unable to find the file on my c: drive.

CyanBlue
07-27-2004, 10:27 PM
Huh... That's strange... :)
(Thanks for correcting it for us, binkyboo... :))

I just did a copy and paste and I don't get the file saved in FMX, but it works in FMX 2004... Strange... :D

Oh... The file was in this directory...
C:\Program Files\Macromedia\Flash MX 2004\en\Configuration

speedlemon
07-28-2004, 12:23 AM
to cyan blue- im sorry i didnt start another thread ok? it was just a quick question that i found out after a quick search.. i asked it because it had to do with what i was already doing. and if the next thread that i started took 3 days for someone to reply, it was almost worth it to get a reply and get yelled at in less than a day.

speedlemon
07-28-2004, 12:25 AM
oh. and ill test that mmsave thing later. i hope it works.

CyanBlue
07-28-2004, 02:37 PM
if the next thread that i started took 3 days for someone to reply, it was almost worth it to get a reply and get yelled at in less than a day.

Well... If you don't get any answer in three days that probably means either you are not explaining your problem correctly or people who read your post do not understand your question or your question is too common so people do not bother to answer the same thing again and again...

speedlemon
07-28-2004, 04:03 PM
ok. thank you for the advice. next time ill wait before i post. during the time im waiting, ill be searching on google and at this place.