Is it possible to load an array file, say from the same directory on the net, into the array object?
Is it possible to load an array file, say from the same directory on the net, into the array object?



Flash does not allow the access to external files. So the answer is no.
you could convert the array into a .txt file and load it using the get object. But it would be a bit slow, and for flash games it's a lot better to have everything inside the application. You can f.ex use the list object to store a large amount of internal data.
Thanks Francois and Softwarewolf. I'll try the txt file idea as it will be extremely useful for some of my educational games to be able to add word lists etc., and maybe at some future stage, allow users to upload their own content which will show in the games.


I reaaaaally want to make an array object that doesn't use external files. But it's a bit out of my league right now and I don't have the time to sludge through it... maybe in the future
If I were you, I think the List object would be nice. You could even use it in conjunction with a mySQL database using some php and the Get object.
I was unable to get the list or combo object to receive the data using the get object, or external files object. I tried many different scenarios. Maybe I'm doing something wrong but I used to be able to import text files easily in Vitalize and thinking about it, the list object is expecting a file name, not received data. Anyway you guys are more savvy about this than me, so it's probably me.
In any event loading from the internet was not so important as user saving, loading their own data etc. I have now succeeded in importing text word list data into combo and list files, plus adding user add, edit and save facilities to their word lists. All achieved using a couple of ini objects.
That's what I love about MMF, there is usually a way around anything that seems originally to be impossible.


Well to use the get object you basically have to parse through and manually load it.![]()
I'm really not sure how I would do that but as SoftWarewolf said, wouldn't that be a bit slow? Also as he suggested (thanks SoftWarewolf) I have loaded all my standard word lists into the list object within the game and surprisingly it takes up very little space.
I'm not sure how useful my little workaround would be but if anyones interested I can give them the mfa file. Basically it's one screen that allows you to create and save text 'files' as groups within an ini file. It lists all the text 'files' you have created and by selecting each one from a list, it then shows the contents in a second list box. It allows you to add, edit and delete words or phrases made by you the user of the online application. All are saved as two cookies so there are obviously file size limits.
Personally I'm going to use this a lot in my ed programs as it will be extremely useful for the user to save and load lists, scores, progress etc.
An example of how I used it is at http://www.goopla.net/hangman.html