Flash & Swish  Home Flash & Swish Flash Tutorials Embedding Flash SWF files in Visual Basic
rss

Embedding Flash SWF files in Visual Basic

Author: Ali Imran More by this author


For making our VB projects more attractive we embed our flash made

Movies into our VB files. Lets make a simple example have simple animations.

In this example we will add a simple animated SWF in VB.

This is just Flash part.

1. Write text and convert it to symbol.

2. Just give it some Fade out Effect.

3. Export it as swishdb.swf

Now this is Visual Basic 6 Part.

1. Run VB6 and select Standard EXE

2. Now save both form and project with name swish db.

3. Now right click on the left tool bar and select Components.

image 1

4. Now from components ----> Controls, check the option of Shockwave Flash  and press OK

image 2

5. Now you will see a new component in the left tool bar.

image 3

Now click on it, and draw a rectangle on your form. It will look like a white rectangle, you can set its height and width from Properties.

6. Now simple click on that white rectangle and now see its properties on the right side. Its properties will look like this

image 4

Now click on the button in front of custom. A window will appear like this

image 5

7. Now give the exact path of your SWF file (swishdb.swf). And check the option of Embed Movie.

8. Now you can set different properties from Properties. For example if you want to make your movie transparent, then do the following steps. Scroll down all properties, you will see an option WMode, now write Transparent in front of it, so it will look like this.

image 6

9. Now run your project. If you make EXE file, the SWF movie is embeded in the main source, now you can delete those SWF files.

You can use this tutorial for both Flash and SWiSH. Because the method of embedding SWF is same.

Download example files here.



Author's URL: www.swish-db.com

Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Embedding Flash SWF files in Visual Basic"