User Tag List

Results 1 to 8 of 8

Thread: Array Object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module
    olltwit's Avatar
    Join Date
    Sep 2006
    Location
    Suffolk, UK
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Array Object

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

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Array Object

    Flash does not allow the access to external files. So the answer is no.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    927
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Object

    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.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module
    olltwit's Avatar
    Join Date
    Sep 2006
    Location
    Suffolk, UK
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Object

    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.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Object

    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.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module
    olltwit's Avatar
    Join Date
    Sep 2006
    Location
    Suffolk, UK
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array 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.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Object

    Well to use the get object you basically have to parse through and manually load it.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module
    olltwit's Avatar
    Join Date
    Sep 2006
    Location
    Suffolk, UK
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Array Object

    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

Similar Threads

  1. [BUG] Array object can't load if the INI object exists in any frame before it
    By happygreenfrog in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th August 2013, 06:17 AM
  2. Listview and Array-Object...
    By Jahkri in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th August 2011, 05:26 PM
  3. Array Object Help
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th November 2009, 11:21 PM
  4. Array object...
    By Almightyzentaco in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th March 2009, 03:37 PM
  5. Map Array Object
    By DistantJ in forum Extension Development
    Replies: 7
    Last Post: 23rd January 2008, 03:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •