Results 1 to 5 of 5

Thread: Using FLASH in VB

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    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

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    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:
    1. Timer1.Enabled = True
    2. Do Until Timer1.Enabled = False
    3.     DoEvents
    4. Loop

    VB Code:
    1. Private Sub timer1_Timer()
    2.  
    3.     If currentframe= maxframe Then
    4.     Timer1.Enabled = False
    5.     End If
    6.    
    7. End Sub

  3. #3
    New Member
    Join Date
    Sep 2005
    Posts
    13

    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.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Location
    Quetta-Pakistan
    Posts
    852

    Re: Using FLASH in VB

    Thanx, but the said project is not wrking

  5. #5
    New Member
    Join Date
    Sep 2005
    Posts
    13

    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
  •  



Click Here to Expand Forum to Full Width