在c#.net中集成Flash文件 [英] Integrate Flash file in c#.net

查看:93
本文介绍了在c#.net中集成Flash文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用C#.net 3.0创建应用程序.
我需要将Flash文件添加到表单中,并通过c#编码控制其框架.例如帧之间的时间或跳到xyz帧.

文件类型,例如.swf或.flv.我正在使用Interop在我的应用程序中显示它.

我用Google搜索了很多查询,但找不到有用的信息.


如果您有实现此类的解决方案或想法,请告诉我.


Prathamesh

Hi,
I am using C#.net 3.0 to Create an application.
I need to add an Flash file to my form and control its Frame(s) via my c# coding. Such as time between frames or jump to xyz frame.

File type such as .swf or .flv. I am using Interop to display it in my application.

I googled many Querys but couldnt find helpful information.


Please let me know if you have any solution or any idea to implement such type.


Prathamesh

推荐答案

Prathamesh,

大多数尝试这样做的人都是使用Flash Player Active X来实现的.尽管有少数人评论说F-IN-BOX扩展了它的附加功能.

本文介绍了active-x的基础知识

在C#WinForms应用程序中显示Flash内容 [ ^ ]

这是用于在F-IN-BOX和.Net中播放Flash的页面.

F-IN-BOX [
Prathamesh,

Most people trying to do this do so with the flash player active x. Although a few are commenting that F-IN-BOX extends this with extra features.

This article covers the basics of the active-x

Displaying Flash content in a C# WinForms application[^]

This is the page for playing flash with F-IN-BOX and in .Net

F-IN-BOX[^]


要将Flash文件嵌入C#Windows .Net应用程序中,可以使用Shockwave Flash Object ActiveX控件.

请按照以下步骤嵌入Flash文件:

步骤1:在工具"框中,右键单击并选择菜单选择项目".

步骤2:在选择工具箱项"窗口中,选择"Com组件"选项卡.

步骤3:向下滚动并确保选中"Shockwave Flash Object",然后单击确定". Shockwave Flash对象现在将出现在工具箱中.

步骤4:只需单击Shockwave Flash Object并将其拖动到窗口Form.

步骤5:添加代码"Form Load".

axShockwaveFlash1.LoadMovie(0,Application.StartupPath +"flash.swf");


这些步骤将嵌入Flash文件,并在加载窗口时在应用程序路径中加载"flash.swf".
To embed a flash file in C# Windows .Net Application we can use Shockwave Flash Object ActiveX Control.

Follow the Steps to embed flash file:

Step 1: In Tool box right click and select the menu "Choose Items".

Step 2: From Choose Toolbox Items window select "Com component" tab.

Step 3: Scroll down and make sure "Shockwave Flash Object" is ticked and click ok. The Shockwave Flash Object will now appear in the toolbox.

Step 4: Simply click and drag the Shockwave Flash Object to window Form.

Step 5: Add the Code "Form Load".

axShockwaveFlash1.LoadMovie(0, Application.StartupPath + "flash.swf");


These steps embed the flash file and loads "flash.swf" in the application path when window loads.


这篇关于在c#.net中集成Flash文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆