|
-
Jan 7th, 2006, 01:16 PM
#1
Thread Starter
Fanatic Member
Using FLASH in VB
1. I have created some animations in Flash, I have tried to use them in VB, They simply run, I want that after ending the
animation, my project perform my desired task. like after ending the animation, my form appears or anyhting ..
2. In 1 animation i have put a button, i want that when this button pressed in VB, my project perform my desired task.
like after clicking the button, a msgbox appears or ABOUT sorm appears etc.
Please help me
Farooq
-
Jan 7th, 2006, 03:14 PM
#2
Re: Using FLASH in VB
For part 1 you could maybe use a timer and count keep it running until the currentframe is at the max frame then disable the timer and carry to code going. Just a thought.
to pause it until the timer stops you can use,
VB Code:
Timer1.Enabled = True
Do Until Timer1.Enabled = False
DoEvents
Loop
VB Code:
Private Sub timer1_Timer()
If currentframe= maxframe Then
Timer1.Enabled = False
End If
End Sub
-
Jan 7th, 2006, 03:19 PM
#3
New Member
Re: Using FLASH in VB
This is a pretty good example of using flash in VB. You can act upon clicking of the button that you say is in the flash animation.
http://www.planetsourcecode.com/vb/s...12397&lngWId=1
If the example doesn't already include a method of knowing when an animation is finished, you could perhaps add an action that gets called from the flash animation when it's done. Not real sure, but hope this helps.
-
Jan 7th, 2006, 09:25 PM
#4
Thread Starter
Fanatic Member
Re: Using FLASH in VB
Thanx, but the said project is not wrking
-
Jan 8th, 2006, 01:02 AM
#5
New Member
Re: Using FLASH in VB
If by "doesn't work" you mean you weren't interested in even looking at the form_load event to discover you need to move flash.swf to the app's directory, I'm not too willing to give any more hints.
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
|