ActionScript 3.0 Design Patterns

(Chris Devlin) #1

396 | Chapter 10: State Pattern


The most important setup in testing this application is making sure you have the


right Real-Time Messaging Protocol (RTMP) configuration. If you’re testing the


application on your system using it as a Flash Media Server platform, you can just


comment out line 54 and remove the comment slashes from line 56. That will work


where your application is on the same server as your SWF file. Otherwise, adjust line


38 to point to your FMS location.


Figure 10-8 shows what your application will look like once it’s running correctly. As


you can see, it’s not much different on the outside because all you see are two addi-


tional buttons. However, its functionality has increased significantly with the ability


to record and append video.


239 flv_txt.text="File not found";
240 setLocal( );
241 break;
242 }
243 }
244 }
245 }

Figure 10-8. Recording video


Example 10-27. TestFMS.as (continued)

Free download pdf