View Full Version : several questions
brendanww
03-10-2005, 02:24 AM
Can people edit sharedobjects placed on their computers?
Can people delete shared objects placed on their computers?
Do variables expire/unset after a certain period of time?
Can variables be called from swf files loaded in a different scene of the same flash file?
id appreciate it immensley if light was shed on those questions :)
kiela
03-10-2005, 03:07 AM
An intersting article is posted here:
http://www.actionscript.net/tutorials/intermediate/SharedObjects/index.shtml
Can variables be called from swf files loaded in a different scene of the same flash file?
Yes they can, they are global and you need to use the format:
var t = SharedObject.data.variable that stands for variables that are NOT temporary
for temp vars you can use:
var t = SharedObject.variable.
Hope I' ve put some light in the shadows.
brendanww
03-13-2005, 06:48 AM
thank you very much, however, for the variable questions, i was refering to just normal variables within a flash vid
Laguana
03-13-2005, 07:50 AM
With regards to shared objects, yes, people can edit and delete them. They're just text-type files with all sorts of ascii characters thrown in, in the user's profile. If someone wanted to they could get in and modify or delete them.
And no, shared objects do not expire on their own, and internal variables don't unless you set up a function to remove them after a time.
brendanww
03-13-2005, 10:05 PM
ok, cause I forget where, but on either flashkit or here, there was a tutorial that recommended using sharedObjects for storing game data, but that would allow the player to cheat if they did. Thanks for taking the time to awnser my questions.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.