-
September 25th, 2013, 05:09 PM
#1
SWF Flash Movie
Hello Everyone
I am new comer to this Forum and I need some help. Actually, I am having a problem with Visual Basic 2008. I started working on VB long time ago and I am trying to solve that:
I have a simple code to play a flash movie in VB 2008. The only problem I have is that after running the code the movie starts playing only after the Axshockwaveflash object is clicked. What can I add to my code to run the movie right after clicking the start button?
Thank you for your help and time.
-
September 26th, 2013, 03:30 AM
#2
Re: SWF Flash Movie
Will something like this help in your Form_Load :
Code:
Dim strFileName As String 'FileName
'Filter For OFD
ofdOpen.Filter = "FLA Files|*.fla|ShockWave Files|*.swf|All Files|*.*"
strFileName = ofdOpen.FileName 'Browse PC For Suitable Files
If ofdOpen.ShowDialog = Windows.Forms.DialogResult.OK Then 'If Valid File Selected
FlashMedia.LoadMovie(0, strFileName) 'Load
FlashMedia.Play() 'Play
PlayToolStripMenuItem.Text = "Pause" 'Change 'Play' To 'Pause'
End If
Sometimes, you have to load the movie first, before playing it, as shown with the two bolded lines
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|