Tha server path often starts with the name of the drive d: or something like that.
I tried the adress to your FlashDB files ( knuckle.com ) but the server responded with a error. Have you given all the files write permissions?
( these scripts come in two versions, for Windows 2000 servers and for Unix servers ( yours is probably a Unix? ) ). Its important that you use the right ones.
I also tested that you had a texfile in a folder called flashdata which you seem to have ( a empty one ).
Put this attachment in the root of your site and give it permissons. By calling it from a browser it will write all internal paths of your server. Its very handy . ( its zipped so you have to open it first )
The if(state=="done" )
... statement has to be repeated as it constantly has to check the variable until the condition is true. You must have it in a frameloop.( going back and forth between two frames ). For instance have the if statement in frame 3
f (state == "done") {
// Done, so break out of this loop and go to frame 4
gotoAndPlay(4);
} else {
// Not done, so go back to frame 2 so this action is repeated
gotoAndPlay(2);
}
Just saw something. You should not specify the textfile in the flashDB scripts ( thats why you specify textfile to write to inside Flash ). Just the path to the folder that contains the textfile, and the path should have a / as the last character..
....pathToServer/flashdata/
AND the showenv.pl script should be i the cgi-bin of course. My error.
Last edited by pellepiano; 04-21-2004 at 12:58 PM.
i tried accessing them myself through the browser and also got an error message..but i assure you i've chmod'd them for full permissions a million times.
i'm attaching my actual fla file, and if you've got the time please have a look at it and see if there is anything else wrong.
i put the if statment into the 3 frame like you suggested...but obviously something is either still missing from my flash file...or something is up with the db files...cuz it's still not working for me.
oh yes, i didn't actually put the textfile name into the db files...i just wrote that here in the forum for some reason...oops.
i really really appreciate your time and your help.
thank you
First. You are sending the variables from within the movieclip. Thats where you also will recieve the state=done, so for now you are checking the wrong timeline.
Ypu have 2 on(release) actions on your button, tha loadVariables action and a...
on (release) {
gotoAndPlay(2);
}
That action tells the CURRENT timeline to go to frame 2, of which there is none. You want to tell the main timeline to go and play frame 2
on (release) {
_root.gotoAndPlay(2);
}
Well, I reorganized your fla so everything is in one timeline. It should work ( if you fix the path in the scripts ).
thanx so much...i see what you did...that helps me alot.
but, it's still not working on the damn site...i can't get the FlashDBwrite/read.pl files to work. i thought maybe i had the wrong ones (the ones for windows instead of unix) so i tried getting the unix ones again and putting them back on the server...but alas, to no avail.
i'm gonna have to talk to my host to see why my chmod commands aren't working on these two files.
until then. thanx a lot for your time and effort.
and if you can think of anything that i haven't, that might explain why those files aren't getting the right permissions let me know.
ttfn.
what would i do without flashkit.com, and it's helpful surfers?
thats really weird. i could not get that DBwrite file to work from the browser last night...and i tried for ages.
well it's working now and thats great.
a question though.
the movie is indeed writing to the file, which is awesome, but it's not just writing in the text i typed in.
it's adding all sorts of other information from the time line...like gibberish about the type of scrollbar i'm using etc.
should i not be identifying what i want to transfer specifically instead of just everything on the timeline?
i've added the read part into another file. so that the content i've updated loads into a whole other movie.
it works great. with one problem
i've added a scroll bar to that new movie on the text field...but it won't scroll.
i've tried everything i can think of.
it just doesn't seem to work!
now. in the original movie you helped me with...i did add in the scroll bar both on the input text field and the output text field.
they both scrolled perfectly.
it just seems to be in this new movie where no scrolling is taking place.
Place the loading code on frame one in the movieclip instead. The scrollbar checks the the texfield if something is loaded into it so the text has to be there when it checks.
I am still unclear as to how to get the text files loaded into the input field for editing.
I understand the write method after text has been entered, but to get the text file into the imput field is where I am having a hard time.
On frame 1 of my movie, I have four buttons. The first button goes to Frame 2. On Frame 2, I have an input field, a component from www.flashloaded.com (FlashTextEditorLite), and a send button. On the Actions layer of this frame I have
You could load the textfile at the beginning of your movie instead.
The textfile contains variables. Your textfields has instance names, thats why they dont show up automatically. You should use variable names on the textfields.