Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Adobe Flash 11

Flash and environment variables  [SOLVED]

Alternative to ShiVa's Web Player

Flash and environment variables

Postby makkar » 01 Aug 2012, 12:11

Hi,

We tried a game with the latest flash export and it didn't save local environment variables. Or maybe it didn't read them back?

I thought that saving environment variables was totally crossplatform. Isn't it the case?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1520

Re: Flash and environment variables

Postby Fraser » 01 Aug 2012, 14:08

Just to report, xml save doesn't work in UAT1.4B Flash either with this code:

Code: Select all
local sPath = "file://"
sPath = sPath .. system.getHomeDirectory ( )
sPath = sPath .. "/Library/Application Support/com.silicondroid.boborange/"
sPath = sPath .. this.K_FILENAME ( )
xml.send ( this.hXML_New ( ), sPath )


But this doesn't suprise me as Flash only has shared objects (flash cookies) which I suppose ENV variables could be stored in but a disk-like structure becomes impractical.
Fraser Ashworth,
https://www.cortex7.net
User avatar
Fraser
Platinum Boarder
Platinum Boarder
 
Posts: 1086
Location: Europe

Re: Flash and environment variables

Postby NiCoX » 01 Aug 2012, 16:14

Hi,

I thought that saving environment variables was totally crossplatform. Isn't it the case?

Yes it is, but it's not yet implemented for Flash. We have to look into shared objects, as suggested by Fraser.
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France

Re: Flash and environment variables  [SOLVED]

Postby NiCoX » 01 Aug 2012, 23:29

Ok, just to let you know this has been fixed. Environment variables are now stored in shared objects ;)
(available in next version)
User avatar
NiCoX
Platinum Boarder
Platinum Boarder
 
Posts: 5652
Location: France


Return to Adobe Flash 11