[flexcoders] check shared object exists

2006-06-15 Thread Angus Johnson
Hi all, Quick one...How do you check for the existence of a shared object? I'm thinking checking the property, size != 0 is one way but is it the best.CheersAngus __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

Re: [flexcoders] check shared object exists

2006-06-15 Thread Abdul Qabiz
I see this as either of two questions:-1) Is SharedObject enabled on client?2) Is the data exists (which I set last time or is it first time) in SharedObject?To check (1), I would do this:try{lso.data.dummy = dummy_text;lso.flush ();}catch (error:IOError){ trace (SharedObject not enabled for