C # play a flash file (SWF file)

Source: Internet
Author: User

Hello everyone, I want to introduce a simple method for playing Flash !!

First, create a project

Then in the toolbox -- General -- Right-click -- select item (I)

Find the Shockwave Flash Object Control in the COM component and check it !!

You will find that there is a general flash Control

The next step is simple.

Let's just make a simple interface,

CodeEasy to understand at a Glance:

Public partial class form1: FORM {public form1 () {initializecomponent ();} private void form1_load (Object sender, eventargs e) {This. flashplayer. movie = "d :\\ flash1 \ flash1 \ Flash \ 188.swf";} private void btnplay_click (Object sender, eventargs e) {This. flashplayer. play ();} private void btnstop_click (Object sender, eventargs e) {This. flashplayer. stopplay ();}}

Is to add a detailed address (movie = ********)

And a playback function and a pause function.

Easy !!

Here is a web page for downloading flash. There are a lot of Flash materials in it !!

Http://hi.baidu.com/goldnunber1/item/0a8004dd94079dcd251f40a9

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.