The Daily Click ::. Forums ::. Klik Coding Help ::. How to save with an Ini in a Flash game
 

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
27th May, 2011 at 04:00:01 -

Where do you save an ini file when you are running a game through flash on the internet?
Thanks

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
27th May, 2011 at 14:51:26 -

Ini is saved as a cookie, just set ini name to whatever u want.

While testing from mmf it saves to WINDOWS folder...

And while playing on site, on xp is something like this:
C:\Documents and Settings\youruser\Application Data\Macromedia\Flash Player\#SharedObjects\"here are all the cookies from every flash game you played, yay!"

And if your playing swf on your pc localy, not from site, then its:
C:\Documents and Settings\youruser\Application Data\Macromedia\Flash Player\#SharedObjects\#localwithnet\

Edited by Don Luciano

 
Code me a sausage!

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
28th May, 2011 at 04:10:45 -

So it automatically saves it there then?

 
n/a

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
28th May, 2011 at 21:44:43 -

Not to sound rude, but you didnt really answer the question. Im kind of looking for a specific place to save it to.

 
n/a

nim



Registered
  17/05/2002
Points
  7233
29th May, 2011 at 01:17:25 -

I think this is the part you're looking for:


Originally Posted by Don Luciano
just set ini name to whatever u want



In other words, you don't have to set the ini drive/folder - just the name and it'll automatically be saved in one of the folders Don mentioned.

 
//

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
29th May, 2011 at 03:03:47 -

oh ok it is automatic. Thanks

 
n/a

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
29th May, 2011 at 23:48:16 -

yes it saves automaticly...
whenever you write any string or value to it its saved...

 
Code me a sausage!
   

Post Reply



 



Advertisement

Worth A Click