MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifiche Pagina 224

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 223
Client-Side Communication ActionScript 33
Movie 1 contains the following code attached to a button labeled PushMe. When you push the
button, you see “The button was pushed.” in the receiving movie.
on (press)
{
var lc = new LocalConnection();
lc.send("trace", "Trace", "The button was pushed.");
delete lc;
}
Movie 2 contains an input text box with a var name of myText, and the following code attached
to a button labeled Copy. When you type some text and then push the button, you see the text
you typed in the receiving movie.
on (press)
{
_parent.lc.send("trace", "Trace", _parent.myText);
_parent.myText = "";
}
Movie 3 contains the following code attached to a button labeled Clear. When you push the
button, the contents of the trace window in the receiving movie are cleared (erased).
on (press)
{
var lc = new LocalConnection();
lc.send("trace", "Clear");
delete lc;
}
See also
LocalConnection.send
LocalConnection.domain
Availability
Flash Player 6.
Flash Communication Server MX (not required).
Usage
myLC.domain()
Parameters
None.
Returns
A string representing the subdomain of the location of the current movie.
Description
Method; returns a string representing the subdomain of the location of the current movie. For
example, if the current movie is located at www.macromedia.com, this command returns
"macromedia.com". If the current movie is a local file residing on the client machine, this
command returns
"localhost".
Vedere la pagina 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 368 369

Commenti su questo manuale

Nessun commento