Shared Object storing custom class?
hello all, forgive me if silly question, can sharedobject store instance of custom built class or can store basic data types (e.g. int, string, arrays, etc)? had assumed able accept custom classes, i'm getting strange errors when attempting access data stored in custom class on sharedobject... it's made me think twice.
essentially i'm trying create game, can have 8 save files. created custom 'gamesave' class holds relevant data, , 'savemanager' class keeps track of 8 saves, , stores them in array on sharedobject. when running game can save data, load again, etc when close game, re-open cannot access same data able moments before... odd!
thanks in advance 1
for complex datatypes need use registerclassalias() method. there many examples on internet how that.
More discussions in ActionScript 3
adobe
Comments
Post a Comment