MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Dokumentacja Strona 282

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 281
Client-Side Communication ActionScript 91
See also
Local disk space considerations, SharedObject.close
SharedObject.getLocal
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
SharedObject.getLocal(objectName [, localPath])
Note: The correct syntax is SharedObject.getLocal. To assign the object to a variable, use syntax like
myLocalSO = SharedObject.getLocal.
Parameters
objectName The name of the object. The name can include forward slashes (/); for example,
work/addresses is a legal name. Spaces are not allowed in a shared object name, nor are the
following characters:
~%&\;: "’,<>?#
localPath
An optional string parameter that specifies the full or partial path to the SWF file
that created the shared object, and that determines where the shared object will be stored locally.
The default value is the full path. For more information on using this parameter, see
SharedObject.getRemote.
Returns
A reference to a shared object that is persistent locally and is available only to the current client. If
Flash cant create or find the shared object (for example, if
localPath was specified but no such
directory exists), returns
null.
Description
Method; returns a reference to a locally persistent shared object that is available only to the
current client. To create a shared object that is available to multiple clients by means of the Flash
Communication Server, use
SharedObject.getRemote.
Note: If the user has chosen to never allow local storage for this domain, the object will not be saved locally, even if a
value for localPath is specified. For more information, see “Local disk space considerations” on page 83.
Because local shared objects are available only to a single client, the SharedObject.onSync
method is not called when the object is changed, and there is no need to implement conflict-
resolution techniques.
To avoid name collisions, Flash looks at the location of the movie that is creating the shared
object. For example, if a movie at www.myCompany.com/apps/stockwatcher.swf creates a shared
object named
portfolio, that shared object will not conflict with another object named
portfolio that was created by a movie at www.yourCompany.com/photoshoot.swf, because the
movies originate from two different directories.
Przeglądanie stron 281
1 2 ... 277 278 279 280 281 282 283 284 285 286 287 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag