ActionScript 3.0 Design Patterns
380 | Chapter 10: State Pattern 22 private var flv_txt:TextField; 23 private var dummy:Object; 24 25 public function TestPause ( ...
Expanding the State Design: Adding States | 381 75 } 76 //MetaData 77 private function getMeta (mdata:Object):void 78 { 79 trace ...
382 | Chapter 10: State Pattern Figure 10-6 shows what your video player should look like. Adding More States and Streaming Capa ...
Adding More States and Streaming Capabilities | 383 ActionScript 3.0 and CSAS can work together. The ActionScript 3.0 default Ac ...
384 | Chapter 10: State Pattern Note that instead of naming the method for stopping the video play, it’s been changed tostopAll( ...
Adding More States and Streaming Capabilities | 385 It may seem ironic that the state with the most active implementations of th ...
386 | Chapter 10: State Pattern The Play state is little changed from previous versions. While playing a video, the structure wo ...
Adding More States and Streaming Capabilities | 387 Like the Play state, little is changed with the Pause state shown in Example ...
388 | Chapter 10: State Pattern TheAppendStateshown in Example 10-25 is the other new class. It’s virtually identi- cal to theRe ...
Adding More States and Streaming Capabilities | 389 Other than adding instances of the new states, nothing is too different from ...
390 | Chapter 10: State Pattern 11 var pauseState:State; 12 var state:State; 13 public function VideoWorks ( ) 14 { 15 trace ("V ...
Adding More States and Streaming Capabilities | 391 The test module, Example 10-27, that follows in theTestFMS.asclass is a bit ...
392 | Chapter 10: State Pattern 31 private var appendBtn:NetBtn; 32 33 public function TestVidFMS ( ) 34 { 35 //************ 36 ...
Adding More States and Streaming Capabilities | 393 83 var playCheck:Boolean=false; 84 85 recordBtn=new NetBtn("Record"); 86 add ...
394 | Chapter 10: State Pattern 135 } 136 } 137 else 138 { 139 flv_txt.textColor=0xcc0000; 140 flv_txt.text="Provide file name"; ...
Adding More States and Streaming Capabilities | 395 187 { 188 pauseCheck=false; 189 if (playCheck) 190 { 191 stopBtn.visible=fal ...
396 | Chapter 10: State Pattern The most important setup in testing this application is making sure you have the right Real-Time ...
Summary | 397 Summary We’re used to thinking in noun-verb pairs, and so designs using the verb element of a pair may take a bit ...
398 Chapter 11 CHAPTER 11 Strategy Pattern 11 Enact strategy broadly, correctly and openly. Then you will come to think of thing ...
What is the Strategy Pattern? | 399 Key Features When looking at the key features of the Strategy pattern, you’ll benefit from c ...
«
16
17
18
19
20
21
22
23
24
25
»
Free download pdf