you'll need to use server-side code (like php) if you want to store data on your server. you can send and retrieve data use the LoadVars() class.
Is there any way to do it without having a server? Possibly store the array
within the quiz itself and just call the data from that fla file to the
banner? I'm trying to have this work in a standalone environment since I
don't have access to a server and I'm not sure I'll be able to gain access
to one before I need to have this finished by. If there is no other way
around using a server, any suggestions on where I can find a free small
scale server? The only thing I would be using it for at this time
what ever is in the swf the first time it loads will be exactly the same as subsequent loads unless there's either external code or a cookie (sharedobject). and nothing in a sharedobject used by one client can be used by a different client.
So if I wanted to avoid using a server, I'd basically have to set up the
array storing the high scores in an external .as or .swf file which would
then be called into the quiz game to store the scores, and then called by
the banner each time it hits frame 1 to refresh the numbers? But then that
would run into the problem of a shared object being used by two different
clients I guess? Servers setup and accessing confuses the hell out of me
right now, so I'm trying not to make things to hellish for myself...
Would there be a way to create 2 external database files within the folder
holding the .swf files to somehow get around the issue of one sharedobject
being accessed by two clients?
you can't store anything dynamic in a 2nd swf or .as file.
using 2 different swfs won't help you unless they're in different domains, one with access to server-side code and one without.
otherwise, if you're storing your data in a sharedobject each client can reload their own sharedobject but diffierent clients will use different sharedobjects. so, that can't be used for highscores unless you just want each client to compete with their own personal best.
Hmm, so in other words I'm stuck having to use a server, unless the quiz.swf
can record the high scores within itself and just send that over to
banner.swf directly... Most of the stuff I've worked on has all been pretty
much self contained in a single .swf or simply just loading multiple .swf
pages into one movie, so this is all a bit new to me.
quiz.swf can't record anything. a swf can't even record how many visitors have opened it.
if this is hosted on a server, server-side code can be used to record data.
Ah okay, was hoping there was a way to just export the data to an excel file
or something and then just import it in for the banner. Guess its time to
have fun with php
please mark this thread as answered, if it's closed.