User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Ini files with flash SWF?

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module
    Eagi's Avatar
    Join Date
    Feb 2012
    Location
    Eskilstuna, Sweden
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ini files with flash SWF?

    Hi all, I'm developing a roleplaying sheet calculator for some friends. they are all Mac users so the normal MMF2.exe wont work for them so I thought to use flash SWF instead. That gave me a new problem though. the ini object seems to be incompatible with SWF, is this so or am I just doing something wrong. And if they don't work together do you guys have any recommendation for alternative data storage instead of ini?

    thankful for any help // Ed

  2. #2
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,634
    Mentioned
    57 Post(s)
    Tagged
    3 Thread(s)
    Hi, the INI object should work just fine with flash. Are you using ini++? That is not compatible currently.

    What is actually happening when you try to use it? How are you loading the ini data / configuring it in the object's properties.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Eagi's Avatar
    Join Date
    Feb 2012
    Location
    Eskilstuna, Sweden
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I'm using the normal ini object since I haven't downloaded any specific ini extensions.
    ini1.jpg
    My script looks like this.
    ini2.jpg
    The odd thing is that it works just fine when I build it as a .exe file, but when I try to build an .swf I get this error message.
    ini3.jpg
    In the error log I get this message.
    ini4.jpg
    So I'm guessing it's the Apppath$ script that I use to find my "host file path" that is incompatible with flash... Is there an other way to designate the searchpath?

    The file is intended to be placed in a shared dropboxfolder together with the .ini database so that we can all load it in to our computers. but given that everyone have there own foldersetup in dropbox it will probably be hard to set up a full searchpath...

    Thanks for showing an intrest in helping me!

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You dont need to write any patname for the ini file in SWF builds, SWF builds automatically store ini in a default folder ( you dont have a choice ).
    I made a thread about this myself, but the Forum search function is so bad i cannot find it ( or maybe in just stupid ).

    However ( again i cannot confirm cuz of search problems ), i remember that SWF exporter store external data files ( ini maybe? ) as .sol files in some situations, which makes it impossible to read.
    I am using INIs to read and write sucessfully in a SWF app, so it is possible.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Eagi's Avatar
    Join Date
    Feb 2012
    Location
    Eskilstuna, Sweden
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you make a screen-shot of the ini write script that you use?
    I cant seem to be able to create ini files without writing in a destination path, so I must be doing something wrong...

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Instead of a pathname, just write the name you want the INI file to have.
    Example: Pathname = "Hiscores"

    An INI file with the same name wil automatically be written to:
    C:\Users\<USERNAME>\AppData\Roaming\MMFApplication s
    If using Windows

    ..
    I made a smple Test Application just now to confirm it:
    - I made an Empty Application
    - Included INI Object ( didnt mess with any properties )
    - Set Pathname BANG
    - Made an Event which wrote number '8' to the file
    - Ran Application
    - Searched for BANG.ini

    And there it was, an INI file called BANG with the number 8 in it.

  7. #7
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    2,997
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Don't use AppPath$+ just use

    Global String A + ".ini"

    Flash won't reference AppPath$.
    Want to learn Clickteam Fusion 2.5?




  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Eagi's Avatar
    Join Date
    Feb 2012
    Location
    Eskilstuna, Sweden
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems like something odd is going on... If I make an .exe and remove AppPath$ the files get sent to

    C:\Users\<USERNAME>\AppData\Roaming\MMFApplication

    like you mentioned but there is no copy in the folder where the .exe is.

    If I make an .SWF version it instead sends the file to

    C:\Users\ejn\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\SZV9GDKJ\#localWithNet\spel leb\test.swf

    and also adds a SOL at the end "bang.ini.sol"

    I'm running Build R257.11 so there shouldn't be any legacy problems or anything like that

    I keep hearing that it's supposed to pop up in the same folder if you dont enter anything else, but I've tried on two different computers now and they behave the same...

  9. #9
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    2,997
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Yes, this is correct but you don't need to worry about calling .sol, just Set Current File (Global String A+".ini") and MMF2 handles all the temporary datafile name conversions etc.

    Apologies here but I'm failing to understand what the problem is

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, im sorry for confusing you Eagi.
    What you are experiencing sounds correct and you shouldnt worry.

    When you run as an actual EXE
    C:\Users\<USERNAME>\AppData\Roaming\MMFApplication

    When you run as an actual SWF
    C:\Users\<USERNAME>\AppData\Roaming\Macromedia\Fla sh Player...something something something

    ...
    If you are able to Write and Read a simple value to the INI file at this point, everythings A OK
    The files might bee hidden by default, and you might need to check that somthin' somethin' under Folder Options for Windows

    The .sol problem i mentioned earlier was for Arrays, MMF2 can only write to Arrays in SWF mode but not read from them.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. "Flash / INI object: now loads INI files stored as binary files in the application."
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 2nd July 2014, 10:22 AM
  2. Flash Files and flash replacements for the unfinished surface object
    By Ethan in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 17th June 2013, 09:34 PM
  3. Flash Text Files
    By Stephen in forum SWF/Flash Export Module Version 2.0
    Replies: 9
    Last Post: 7th August 2012, 03:50 PM
  4. Can Flash files be added?
    By Maximum in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 22nd June 2009, 06:34 AM

Tags for this Thread

Posting Permissions

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