Skip to main content
Known Participant
July 26, 2010
Answered

Help creating an external array for a scoreboard

  • July 26, 2010
  • 1 reply
  • 1049 views

I'm trying to create an array in an external file that will recieve and arrange scores sent from Quiz.fla upon clicking the submit score button.  I also want another fla file to be able to reference this external array and pull the top 15 scores from it, and then display those scores on a scrolling banner.  I want the banner to be able to update dynamically (I assume reloading the banner fla each time it reaches the end of its cycle, having the first frame load the external array on an onClipEvent action would accomplish this), that way it will update while remaining open.  The main reason I need two separate files for the quiz and the score banner is they will be displayed on two different monitors.  What would be the most efficient way of accomplishing this?  I know a little about actionscript but I don't have much experience with calling data and functions from external fla or as files (the array and the function designating how the data will be arranged within said array are going to be in a separate .as file).

I'm currently working in AS2, since I've had almost no experience with AS3.

This topic has been closed for replies.
Correct answer kglad

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.

1 reply

kglad
Community Expert
Community Expert
July 26, 2010

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.

mldb88Author
Known Participant
July 26, 2010

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

kglad
Community Expert
Community Expert
July 26, 2010

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.