Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can we play a Flash (.swf) Directly on a Switchboard 1

Status
Not open for further replies.

DoctorV3774

Programmer
Oct 12, 2004
33
US
We would like to be able to play this file upon entering the database. How can we do that?
 
I prefer using the ActiveX control Microsoft Web Browser. In the OnOpen event of the form, enter something like this:

NameOfYourWebBrowserControl.Navigate "\\path\yourFile.swf"

To determine what methods and properties are available, declare a dummy variable in a module. Then just type in the name of the variable and context help will display the methods and properties available.

Dim abc as WebBrowser
 
That's a good way. Here's another. In design view of your form, bring up the Toolbox toolbar (view-toolbars-toolbox). Click on the More Controls icon. Scroll down to Shockwave Flash Object. Click on that and draw a box on your form. Right Click on the box and click on Properties. In the properties box, go to Custom, click in the box next to Custom and click the Build button (...). Type in the FULL path name to your .swf file. Then for Quality select Best, Scale select Show ALL, Window select Window. Check Play, Loop, Embed. Click Apply then OK. You won't see the Flash movie in Design view, you must switch to Form view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top