User Tag List

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 29

Thread: Arrays in Flash Games

  1. #1
    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)

    Arrays in Flash Games

    Hi
    Is it OK for a Flash game to store an Array ( highscore table ) on the users computer?
    Is there a specific location i should store the Array?

  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
    1 Post(s)
    Tagged
    1 Thread(s)
    Yes, data are saved in a specific folder on the user's machine.

  3. #3
    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)
    Quote Originally Posted by Francois View Post
    Yes, data are saved in a specific folder on the user's machine.
    Im not sure i understand.
    When i save an Array in MMF2, i have to input a filename and a location for the file.

    Are you saying that it dont matter what location i use to store the Array?
    Or are you saying that my MMF2 Flash app will allways automatically save the Array at a specific location?
    In that case, what location?

    I notice that when saving an Array to the desktop, it does not get created at that location ( or any other location as i am aware of ) when running the app as Flash, only as EXE.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Yes this is what I mean. In Flash, only the name and extension component of pathname is used. The files are saved in a folder located deep in the system drive (%APPDATA%\Macromedia\Flash Player\#SharedObjects\ for Vista).

  5. #5
    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)
    Excellent
    I understand, thank you very much Francois!

  6. #6
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    So this means it is possible to use arrays for flash games and not just inis? (I have been told both yes and no a lot). Or will some systems or sites block an atemt to save a file to the harddrive? (I guess it is not possible to save the array to the cookies as the ini does?)

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Outcast View Post
    So this means it is possible to use arrays for flash games and not just INI's? (I have been told both yes and no a lot). Or will some systems or sites block an attempt to save a file to the hard drive? (I guess it is not possible to save the array to the cookies as the INI does?)
    Hi Outcast. I was taught no, and I have yet to see an example with the array saving values, a player's position and etc. Can someone provide an example for me. In my training I seemed have missed this.

    Thanks,

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    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)
    Hi
    Ive been working all day on this
    I have made an Array represent Players Scores and Names for a game, it works correctly as EXE and also seems to be working correctly in Flash.

    However if sites block atempts to save files like this to disk, such a solution is kinda bad and maybe other solution would be better.
    Well, i have created a scoreboard using Array for a Flash game, so it works...
    But i would also like to know if such conduct is genrally accepted or not among hosting sites.

    How should one go about finding this out, contacting different hosting sites maybe?
    If anybody knows anything about this, pleace let me/ us know

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by King_Cool View Post
    Hi
    Ive been working all day on this
    I have made an Array represent Players Scores and Names for a game, it works correctly as EXE and also seems to be working correctly in Flash.

    However if sites block atempts to save files like this to disk, such a solution is kinda bad and maybe other solution would be better.
    Well, i have created a scoreboard using Array for a Flash game, so it works...
    But i would also like to know if such conduct is genrally accepted or not among hosting sites.

    How should one go about finding this out, contacting different hosting sites maybe?
    If anybody knows anything about this, pleace let me/ us know
    Would you mind sharing your file so that I may reverse my teachings, thoughts, beliefs, theories, and etc? I really appreciate how CT just jumped right on this.

    Thanks,

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  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)
    Unfortunatly i cannot share the file i have been working on
    But im more than happy to create a simple example of how a MMF2 Flash App can store values to, and read from an Array
    Its pretty straight forward actually

    But righ now however, i need to get some sleep

Page 1 of 3 1 2 3 LastLast

Similar Threads

  1. Are Mmf Flash games slower then native Flash?
    By Outcast in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 23rd October 2011, 02:31 PM
  2. Where should flash games save to?
    By Skeets in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 25th July 2011, 05:08 PM
  3. hyperlinks in Flash games
    By JollyPanda in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st October 2010, 04:55 PM
  4. Bug In Flash Games
    By BHGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 9th March 2010, 12:07 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
  •