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.
Popularity: 14% [?]
Related posts:

October 30th, 2008
admin
Posted in
Tags: 

i used ur code to attach flash file bt its not working form loading is proper bt flash file not running in that asshockwaveflash1 control
Hi
I want to embed the swf file with in my exe. I dont want to keep swf file from the exe. I want to create only one exe which play its embed swf file.
How can i do this. Can u Help me…
try build and rebuild to dll error
axShockwaveFlash1.Movie = “C:\\Documents and Settings\\admin\\Desktop\\Dispose\\mis2.swf”;
axShockwaveFlash1.Play();
Put this code in your formload event
axShockwaveFlash1.Movie = “C:\\Documents and Settings\\admin\\Desktop\\Dispose\\mis2.swf”;(This is my file path for flash object give your file path and run)
axShockwaveFlash1.Play();
thanx for you help ,
but i think the code isn’t complete
axShockwaveFlash1.LoadMovie(0, @”C:\———\——–\flash.swf”);
try this it working