473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Flash Integration?

Can anyone point me to an example of embedding a
Macromedia Flash .swf into a vb.net form?

tia

kurt
Nov 20 '05 #1
2 7552
Hi Kurt,

Here are notes I wrote to myself when I finally figured out how to do this:

make a reference to the proper control by browsing for
c:\windows\system32\flash\swflash.ocx; once selected, it will immediately
check the Flash Factory Object; select it and it will become actually two
controls; drag the one called 'Shockwave' to the form (I actually have these
now as part of the Components tab in the toolbox); right click and set as
appropriate; I'm having a little trouble getting it to play, as the play
selection seems to continually drop, but I finally got it to lock in - some
of the other settings may have been interfering with it; finally, remember
that the timer in the splash screen may have to change if the movie runs
longer than you might expect; UPDATE: it's a flacky control, because
elements of it tend to disappear even after using 'apply', but be persistent
and it eventually will stick; also, the code doesn't even have the .swf
filename

Here's the timer code I use to autoclose the form:

Private Sub splash_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
AxShockwaveFlash1.Loop = False

AxShockwaveFlash1.Play()

Timer1.Start()

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Timer1.Tick

alarmcounter += 1

If alarmcounter > 5 Then

Me.Close()

End If

End Sub

HTH,

Bernie Yaeger

"Kurt" <ks*******@comcast.net> wrote in message
news:08****************************@phx.gbl...
Can anyone point me to an example of embedding a
Macromedia Flash .swf into a vb.net form?

tia

kurt

Nov 20 '05 #2
-----Original Message-----
Hi Kurt,

Here are notes I wrote to myself when I finally figured out how to do this:
make a reference to the proper control by browsing for
c:\windows\system32\flash\swflash.ocx; once selected, it will immediatelycheck the Flash Factory Object; select it and it will become actually twocontrols; drag the one called 'Shockwave' to the form (I actually have thesenow as part of the Components tab in the toolbox); right click and set asappropriate; I'm having a little trouble getting it to play, as the playselection seems to continually drop, but I finally got it to lock in - someof the other settings may have been interfering with it; finally, rememberthat the timer in the splash screen may have to change if the movie runslonger than you might expect; UPDATE: it's a flacky control, becauseelements of it tend to disappear even after using 'apply', but be persistentand it eventually will stick; also, the code doesn't even have the .swffilename

Here's the timer code I use to autoclose the form:

Private Sub splash_Load(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles MyBase.Load
AxShockwaveFlash1.Loop = False

AxShockwaveFlash1.Play()

Timer1.Start()

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Timer1.Tick

alarmcounter += 1

If alarmcounter > 5 Then

Me.Close()

End If

End Sub

HTH,

Bernie Yaeger

"Kurt" <ks*******@comcast.net> wrote in message
news:08****************************@phx.gbl...
Can anyone point me to an example of embedding a
Macromedia Flash .swf into a vb.net form?

tia

kurt

.

Thanks Bernie, I'll give it a whirl :-)
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Drew D. Saur | last post by:
When working on a web site for my employer, I uncovered what appears to be an undocumented bug in Internet Explorer 5 & 6 for Windows in regard to a (perhaps uncommon?) integration of Flash...
5
by: Turner | last post by:
Hi there, I'm not a flash programmer myself but I work with some of them. It seems whenever I browse to a page developped by these folks the browser receives it as if there were ActiveX content...
18
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
1
by: David Jubinille | last post by:
Hi Folks, I've been spending a lot of time looking for a way to connect my HTML pages to their embedded flash files. Ideally, I would like a way to issue "gotoandX" commands via javascript...
1
by: Speaker | last post by:
I have a following problem: Flash control (toolbar) has to be integrated in win32 application written in C. The problem is that application is not dialog window and hasn't MFC. If it were so,...
1
by: anandakumarpc | last post by:
I would like to know how to integrate FLASH and ASP. i.e A form designed in Flash has to collect details and the details are to be stored in an Ms-Access database thru an ASP Program. Then Data...
8
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
6
by: Andy G | last post by:
I have a client that is really pushing me to start using Flash MX Professional to replace VS.NET. Main arguement is that it looks better and flows nicer than visual studio developed applcations...
0
by: defenestrationism | last post by:
Hello, I've been able to use makepy to create a wrapper around flash8.ocx and I have a wx app that serves as a container. I can get this simple case to run a flash swf, and I can also receive...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.