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
 
Calling all Shared Object junkies...

Calling all Shared Object junkies...

2004-03-18       - By Jesse Warden

 Back
Reply:     1     2     3  

To extend Dario's explanations:

NetConnection.call:
- when a client does this, if there is a method on the server-side that is
attached to his client object, he'll call it.  I don't know if it applies to
the Client class vs. the client instance, but regardless, if it exists,
it'll get called.  If the method exists, but isn't attached to the client
instance, it won't get called.  No other clients get this message.

The primary use for this is to call a message on the server.

NetStream.send:
- this generates an event.  If any connected client, including the one who
called it, has a method with the name of the string you pass in, it'll get
called, and passed any parameters you pass in optionally.  This includes
client & server, assuming the server is both connected to the NetStream
instance, and has a method named that attached to it's instance.

The primary use for this is to trigger an event for those watching/listening
to a specific NetStream.  This implies collaboration of some sort.

The secondary use for this is to save that event.  In the case of
NetStream's that are being recorded, those event triggers will be saved, and
when the FLV is played back later (with Flash Player 6.0.79.0, hehe), those
events will be fired off and triggered at the time they were fired when the
stream was being recorded.

SharedObject.send:
- same as NetStream, except no recording.

The primary use for this is to trigger an event for those clients (&
server), connected to the SharedObject instance.  Since SharedObjects are
usually shared data, or a the server "Model", these messages usually imply
events dealing with the data associated as such.


As far as which messages get through and dropped; I can't remember the
specifics, but another MM engineer dude talked about it in the past on this
list, listing exactly what is and isn't dropped.  Check the archives.

-- --Original Message-- --
From: Dario De Agostini - New Vision s.r.l. [mailto:dario@(protected)]
Sent: Thursday, March 18, 2004 08:48 AM
To: flashcomm@(protected)
Subject: Re: [FlashComm] Calling all Shared Object junkies...



> NetConnection.call(function)
you can call a function from all clients connected

> NetStream.send(handler)
you can call a function from all clients using this stream

> SharedObject.send(handler)
you can call a function from all clients connected to this S.O.


> What's the difference? What are the issues? (assuming for ease that
> all clients have one of each so can use any without let or hindrance).
if you are assuming that each client is connected and each client is
receiving the same stream and each client is connected to the same
shareobject they are absolutely identical.

MM gave those 3 ways of calling a remote method to be able to address
"specific" flash-client classes


Sorry for my bad english, i hope i gave some help.


Dario
www.newvision.it


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-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: flashcomm-unsubscribe@(protected)
For additional commands, e-mail: flashcomm-help@(protected)