User Tag List

Results 1 to 4 of 4

Thread: Loading data from an INI in Flash

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleSWF Export Module
    FrankyAsh's Avatar
    Join Date
    Dec 2010
    Location
    Cape Town, South Africa
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loading data from an INI in Flash

    Hi

    I understand that it is not necessary to set a path when saving to an ini file in flash, but what if you want to read data from an ini file that has been created outside of the swf game?

    My level grid is stored in an ini file. Should I rather save it in a database and load it from there?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2008
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading data from an INI in Flash

    I'm having the same issue and was going to post about it. I cannot read any previously saved data from a ini file in flash. Example: If I created the ini file manually and enter values I then cannot read those values once the file is uploaded. I can only read the values from an ini file that has been written by a flash application on the server. I tried and it did not work with java either unless I signed the java applet.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleSWF Export Module
    FrankyAsh's Avatar
    Join Date
    Dec 2010
    Location
    Cape Town, South Africa
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading data from an INI in Flash

    I have decided to leave the ini and rather hardcode my grid into a string object. It's actually less comlicated.
    I created a level editor which exports my tile grid to a txt file something like this:


    00000000000
    10101010101
    22222222222
    11111111111
    22220002222
    22220002222

    And once ive exported the level to the text file I just copy the contents of the file to the string object.
    Problem sovled. No worries. And it's probably more secure. You won't have people fiddling around trying to change values.

  4. #4
    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
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Loading data from an INI in Flash

    you can upload the .ini and load it using this example: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Main=25647&Number=1865 59#Post186559

    but yes, it's obviously a lot better if you can include it inside the game rather than load it from an external file

Similar Threads

  1. Example of loading array data from a .csv file...
    By MuddyMole in forum File Archive
    Replies: 1
    Last Post: 12th November 2013, 05:38 PM
  2. INI object loading from binary data
    By UrbanMonk in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 24th March 2013, 12:04 PM
  3. Array data loading fast enough?
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 30th January 2013, 06:07 PM
  4. remote data loading
    By payopepe in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 30th January 2013, 10:16 AM
  5. Saving and loading data from MySQL
    By Hydra in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th May 2012, 08:15 PM

Posting Permissions

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