MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Spécifications Page 275

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 369
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 274
84
By default, Flash can save locally persistent remote shared objects up to 100 K in size. When you
try to save a larger object, the Flash Player displays a Local Storage dialog box, which lets the user
allow or deny local storage for the domain that is requesting access. (Make sure your Stage size is
at least 215 by 138 pixels; this is the minimum size Flash requires to display the dialog box.)
If the user chooses Allow, the object is saved and
SharedObject.onStatus is invoked with a code
property of SharedObject.Flush.Success; if the user chooses Deny, the object is not saved and
SharedObject.onStatus is invoked with a code property of SharedObject.Flush.Failed.
The user can also specify permanent local storage settings for a particular domain by right-
clicking (Windows) or Control-clicking (Macintosh) while a movie is playing, choosing Settings,
and then opening the Local Storage panel.
You cant use ActionScript to specify local storage settings for a user, but you can display the Local
Storage panel for the user by using
System.showSettings(1).
The following list summarizes how the user’s disk space choices interact with remote shared
objects from a specified domain that request local persistence.
If the user selects Never, objects are never saved locally, and all SharedObject.flush
commands issued for the object return
false.
If the user selects Unlimited (moves the slider all the way to the right), objects are saved locally
up to available disk space.
If the user selects None (moves the slider all the way to the left), all SharedObject.flush
commands issued for the object return
"pending" and cause Flash to ask the user if additional
disk space can be allotted to make room for the object, as explained above.
If the user selects 10 KB, 100 KB, 1 MB, or 10 MB, objects are saved locally and
SharedObject.flush returns true if the object fits within the specified amount of space. If
more space is needed,
SharedObject.flush returns "pending", and Flash asks the user if
additional disk space can be allotted to make room for the object, as explained above.
Vue de la page 274
1 2 ... 270 271 272 273 274 275 276 277 278 279 280 ... 368 369

Commentaires sur ces manuels

Pas de commentaire