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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 369
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 112
Sample Applications 35
6 Create the event handler for the Play button that plays the stream recorded on the server.
function doPlay() {
in_ns.play("my_recorded_stream");
}
To test your sample application:
1 In the Flash MX authoring environment, after you have saved your work, publish it by
selecting File > Publish.
2 Open the SWF file in the application directory or, in the Flash MX authoring environment,
choose Control > Test Movie.
Sample 2: Shared Text
This sample allows users to share text. Any user can update the text on the stage, and other users
can see it immediately updated on their own stages.
About the sample
User 1 opens the doc_text.html file and is able to type text in the text box. User 2 opens the same
movie and automatically connects to the same shared object. User 2 can see the text as user 1
types it. When user 2 edits the text, user 1 can view the changes as they occur.
Re-creating the sample
The doc_text.fla file uses only a few lines of code to connect to the Flash Communication Server,
create and connect to a remote shared object, and update the shared object on the Stage that all
connected clients are viewing.
This sample introduces the idea of shared objects (for more information, see the Client-Side
Communication ActionScript Dictionary). In this sample, you call
SharedObject.getRemote("sharedtext", new_nc.uri, false). These shared objects are
synchronized with the server over an RTMP connection. Shared objects consist of name-value
pairs and can be updated by any client connected to the application and the shared object.
See “Creating your working environment” on page 31 before you start to re-create the sample.
To create the user interface for this sample:
1 In the Flash MX authoring environment, select File > New to open a new file.
2 From the toolbox, select the Text tool and draw a text box.
3 In the Property inspector (Window > Properties), select Input Text for the type of text box, and
give it the instance name
TypingStage.
4 Create a directory named doc_text in your flashcom application directory, and save the file as
doc_text.fla in this directory.
To write the client-side ActionScript for this sample:
1 Select the keyframe in the Timeline and open the Actions panel (Window > Actions).
Przeglądanie stron 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 368 369

Komentarze do niniejszej Instrukcji

Brak uwag

American Standard Cadet Single Control Kitchen Faucet 8410 manuals

Owner’s manuals and user’s guides for Faucets American Standard Cadet Single Control Kitchen Faucet 8410.
We providing 1 pdf manuals American Standard Cadet Single Control Kitchen Faucet 8410 for download free by document types: User Manual






More products and manuals for Faucets American Standard

Models Document Type
R800 User Manual   American Standard R800 User's Manual, 2 pages
Amarilis 7191.142 User Manual   American Standard Amarilis 7191.142 User's Manual, 2 pages
Standard 4271S User Manual   American Standard Standard 4271S User's Manual, 2 pages
Colony 1351 SERIES User Manual   American Standard Colony 1351 SERIES User's Manual, 1 pages
MONTERREY 5502 User Manual   American Standard MONTERREY 5502 User's Manual, 2 pages
Cadet Deck-Mount Tub Filler 3985 User Manual   American Standard Cadet Deck-Mount Tub Filler 3985 User's Manual, 1 pages
2900.222.002 User Manual   American Standard 2900.222.002 User's Manual, 2 pages
T506.430 User Manual   American Standard T506.430 User's Manual, 2 pages
Standard 2881S User Manual   American Standard Standard 2881S User's Manual, 2 pages
4" Centerset Lavatory and Bar Sink Faucets 5401 Series User Manual   American Standard 4" Centerset Lavatory and Bar Sink Faucets 5401 Series User's Manual, 2 pages
Standard 4251S User Manual   American Standard Standard 4251S User's Manual, 2 pages
Metering M962396-YYY0A User Manual   American Standard Metering M962396-YYY0A User's Manual, 1 pages
Amarilis/Heritage Two-Handle Centerset Bar Sink Faucet 7490.000 User Manual   American Standard Amarilis/Heritage Two-Handle Centerset Bar Sink Faucet 7490.000 User's Manual, 2 pages
Standard 4223S User Manual   American Standard Standard 4223S User's Manual, 2 pages
Heritage Two-Handle Wall-Mount Sink Faucet 7298.252 User Manual   American Standard Heritage Two-Handle Wall-Mount Sink Faucet 7298.252 User's Manual, 1 pages
Heritage Kitchen Faucet 6270.000 User Manual   American Standard Heritage Kitchen Faucet 6270.000 User's Manual, 2 pages
Amarilis Two-Handle Pantry/Bar Faucet 719.000 User Manual   American Standard Amarilis Two-Handle Pantry/Bar Faucet 719.000 User's Manual [en] , 2 pages
Pekoe 4332.350 User Manual   American Standard Pekoe 4332.350 User's Manual, 2 pages
Cadet 6425 User Manual   American Standard Cadet 6425 User's Manual, 2 pages
Laundry 7573.140 User Manual   American Standard Laundry 7573.140 User's Manual, 2 pages