Mailing List
Home
Forum Home
Flash Pro
Subjects
Subject: RE: Firework Effect
Web Service Results
Flash Interface with 10mb xml file
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash MX 2004 Sucks
Reading and displaying RSS feeds in Flash MX
Flash and QuickTime VR
Textfield prototype question
XML to Object help
Order of events per frame
MX2004 Dataset itemClassName
memory management removeMovieClip /
Event Dispatcher between classes
Help: MX 2004 How to script a print button to print the entire sli
ScrollPane component doesn 't auto update
setInterval bug identified and fixed
setInterval bug identified and fixed
Listener Object 's best practice
 
Shared Objects -- "Best Practices "

Shared Objects -- "Best Practices "

2004-03-03       - By Sherman, Daniel

 Back
Reply:     1     2     3  

As always, thanks for the help!
--dan

-- --Original Message-- --
From: Jesse Warden [mailto:warden@(protected)]
Sent: Wednesday, March 03, 2004 10:52 AM
To: 'flashnewbie@(protected)'
Subject: RE: [Flashnewbie] Shared Objects -- "Best Practices"


1.

The initial flush of a SharedObject is sometimes slow depending on size.
Later flushes are pretty quick, but multiples are slow.  Therefore, your use
of _global to hold them is good.

As long as you save the data on slots, this is better than deeply nested
objects (at least for Flashcom).  I'm not sure the same holds true here.

Like, a slot is a propery on the data object.

var so = SharedObject.getLocal("prefs", "http://www.server.com/");
so.data.slot1 = "some value";
so.data.slot2 = 3;

In Flashcom, if a slot's data changes, only that slot is updated, and not
the whole shared object.  Since local shared objects work similiary, I
usually create my SO's the same way, but because all your doing is reading
and writing, I don't think it really makes a difference.  The only reason I
even mention it is the fact that if it's designed that way on Flashcom, then
there may be some speed or benefit to using slots instead of:

so.data.slot1 = {};
so.data.slot1.value1 = "asdr";
so.data.slot1.value2 = "asdf";

Notice, we're only using one slot, but putting a deeply nested object on it.
I think that is bad, but I still do it...

At any rate, 1.

-- --Original Message-- --
From: Sherman, Daniel [mailto:dsherman@(protected)]
Sent: Wednesday, March 03, 2004 10:46 AM
To: Flashnewbie (E-mail)
Subject: [Flashnewbie] Shared Objects -- "Best Practices"


Hello All,
I am building a desktop app that needs to save variables for use immediately
in the current session and also in later sessions, using shared objects. The
variable's value may change several times during one session and will need
to be updated immediatly in the movie.

Have a question though, Which yields the best (fastest) performance? 1.
Store all the user's info as global variables, then save them to the hard
drive all at once.

2. Keep saving and retrieving the variables as shared objects (if user
changes mind and chooses red instead of green, shared object would update
immediately and be retrieved by current playing movie)

3. I'm totally missing the boat, and you guys can tell me how you would do
this : )

Daniel Sherman
Multi-Media Coordinator
Catholic Relief Services
(410) 951-7398


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your skill set
with courses in ColdFusion, Flash, Rich Internet Applications and .NET in
the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your
location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Supported by Fig Leaf Software
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
Lower Prices for Certified Training! Check out new lower prices for
Certified Macromedia Training from Fig Leaf Software. Expand your
skill set with courses in ColdFusion, Flash, Rich Internet
Applications and .NET in the new year.  Fig Leaf Software provides
the highest caliber instruction at our training centers in Washington
D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at
your location.

Get the details at http://training.figleaf.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected)
For additional commands, e-mail: flashnewbie-help@(protected)