C1WebFlash class allows you to play a Flash movie in variant manners on a browser. This section explains how the C1WebFlash control works and shows you how to set up a Web form using the C1WebFlash control.
C1WebFlash is a Web control that controls how a Flash movie is played on a Web page. When rendering the Web control, necessary <OBJECT> and <EMBED> tags will be inserted into the page. The actual Adobe Flash movie file to be opened and played is referenced in these tags.
The OBJECT tag is used by Internet Explorer on Windows and the EMBED is used by Netscape Navigator (Macintosh and Windows) to direct the browser to load the Adobe Flash Player. Internet Explorer on Windows uses an ActiveX control to play Adobe Flash content while all other browser and platform combinations use the Netscape plug-in technology to play Adobe Flash content.
Meanwhile, client detection script may be inserted by this control for detecting the existing version of the Flash plug-in.
C1WebFlash can also accept any of the ComponentOne’s Flash engine components (C1FlashCanvas, C1FlashMovie, and C1FlashSlide) as its content source. When you drop C1WebFlash and C1Flash engine on to the ASP.NET Web form, clicking the FlashSource property in its Property window may drop down a list of Flash engine objects that exist on the form, by which you can choose and “bind” an engine to this Web control.
When the Web control is rendered, the Flash content defined in the Flash engine component will be saved into a temporary folder located under the Web application’s virtual path. The correct unique Flash file URL will be inserted into the HTML tag automatically. The temporary files will be cleaned up according to the time span specified by the SlideExpiration property.
If you already have a static Flash movie file, you can use the MovieName property referring to that file. If both the MovieName and FlashSource properties are set, FlashSource will be used in advance.