// Register the listener with the TextInput component instance.
myText_ti.addEventListener("enter", textListener);
The following example saves the last frame that a user entered to a local shared object kookie:
// Get the kookie.
var my_so:SharedObject = SharedObject.getLocal("kookie");
// Get the user of the kookie and go to the frame number saved for this
user.
if (my_so.data.user != undefined) {
this.user = my_so.data.user;
this.gotoAndStop(my_so.data.frame);
}
The following code block is placed on each SWF file frame:
// On each frame, call the rememberme function to save the frame number.
function rememberme() {
my_so.data.frame=this._currentframe;
my_so.data.user="John";
}
See also
SharedObject.close()
SharedObject.getRemote()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
SharedObject.getRemote(objectName, URI [, persistence])
The correct syntax is
syntax like
var myRemote_so:SharedObject = SharedObject.getRemote(objectName, URI)
Parameters
The name of the object. The name can include forward slashes (
objectName
example,
work/addresses
nor are the following characters: ~ % & \ ; : " ' , < > ? #
The URI of the server on which the shared object will be stored. This URI must be
URI
identical to the URI of the NetConnection object to which the shared object will be
connected. For more information and an example, see the
,
SharedObject.flush()
SharedObject.getRemote()
is a legal name. Spaces are not allowed in a shared object name,
,
SharedObject.getRemote()
. To assign the object to a variable, use
SharedObject class
SharedObject class
.
); for
/
entry.
127
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?
Questions and answers