Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash and VB

Status
Not open for further replies.

Ajb2528

Technical User
Joined
Feb 22, 2002
Messages
270
Location
GB
I am new to Flash but I have a very good knowledge of VB. I am currently writing a VB app that incorporates a simple Flash movie. This works fine but I want the VB code to "pause" i.e. wait until the Flash movie completes and once the movie has completed playing, resume the VB code.

Is there any way within Flash (actionscript?) that will pass a value back to VB to indicate that the movie has completed?

I have tried interrogating several properties from the OCX such as ReadyState, Playing and even a loop using TotalFrames and manually moving forward one frame using FrameNum but none of these appears to work!!

I would really appreciate any help on this matter!!

Regards,

Alan
 
The Flash ActiveX control has a SetVariable method, defined by VB's Object Browser as follows:
Sub SetVariable(name As String, value As String)
This should allow you to pass variables between your program and your flash interface but ive never tried it.
 
billwatson,

Thanks for the reply but what I am really after is for the Flash movie to post a response back to VB to indicate when the movie has finished playing. I can then query this response and pause the VB code untill the movie has completed. Once the response from Flash indicates that the movie is complete, I can then resume execution of the VB code.

Regards,

Alan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top