473,765 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7566
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\syst em32\flash\swfl ash.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(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
AxShockwaveFlas h1.Loop = False

AxShockwaveFlas h1.Play()

Timer1.Start()

End Sub

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e As
System.EventArg s) Handles Timer1.Tick

alarmcounter += 1

If alarmcounter > 5 Then

Me.Close()

End If

End Sub

HTH,

Bernie Yaeger

"Kurt" <ks*******@comc ast.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\sys tem32\flash\swf lash.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(ByV al sender As System.Object, ByVal e AsSystem.EventAr gs) Handles MyBase.Load
AxShockwaveFla sh1.Loop = False

AxShockwaveFla sh1.Play()

Timer1.Start ()

End Sub

Private Sub Timer1_Tick(ByV al sender As System.Object, ByVal e AsSystem.EventAr gs) Handles Timer1.Tick

alarmcounter += 1

If alarmcounter > 5 Then

Me.Close()

End If

End Sub

HTH,

Bernie Yaeger

"Kurt" <ks*******@comc ast.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
762
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 scripting and CSS2 background imagery. I am hoping that someone out there can help me identify what steps I might take to remedy this situation. Perhaps it is something that Macromedia might be able to do something about, since getting IE fixed is...
5
5252
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 (but there is none). I think there is a relationship between ActiveX and Flash, but I believe they are separate. The problem is, on explorer, for security and sanity reason I have completely disabled activeX and it prevents me from seeing the...
18
12699
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 state, the HTML page URL would change from default.html to default.html#stateA. example: http://pearstudios.com/javascript/locationHashAndFlash.html This has worked perfectly within HTML and javascript alone, however, when connecting Flash and...
1
1592
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 enabled buttons. I've looked into named anchors, but I don't like the idea that the user's back button is then constrained to a history of accessed anchors -- in other words, I want the operation to be totally transparent to the user.
1
1849
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, the problem could be easily solved, but without MFC? Did anyone encountered, and hopfully solved, such a problem? Code example would be of great help. THX.
1
5022
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 from Ms-Access database has to be shown in FLASH Movie via an ASP Program. Please help me with a complete error free coding written in Actionscript 2.0.
8
4060
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
1916
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 (this client is a designer not a programmer). I believe that Flash is a 'Tool' not a 'Solution'. My 'Solution' is an ASP.NET application but I would like to use Flash as a 'Tool'. I am having very hard time seeing any documentation on the...
0
1215
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 fscommands from the flash movie to the container. However, I've seen commercial flash containers that provide new Actionscript functions (not fscommands) that can be called from the flash movie to do something at the os level. How can I do this?...
0
10160
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.