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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Shockwave flash problem

Status
Not open for further replies.

MJB3K

Programmer
Jul 16, 2004
524
GB
Hi, i have a shockwave flash component on the form called swf_holder.

In that i load my movie.

The problem i have is how can i get the variables from flash into the visual basic?

I have this code so far:
Code:
Dim theScore2 As IShockwaveFlash, theScore As String

swf_holder.GetVariable (theScore)
MsgBox "The Score is: " & theScore
and in flash:
Code:
var theScore = rT.text+"|"+bT.text;

Any ideas?? Am i doing this wrong??

Or is there another way of doing this??


Regards,

Martin

Computing Help And Info:
 
Not sure if you're still looking for help on this, but the correct way to get the variable would be almost as you had it:
Code:
theScore = swf_holder.GetVariable("theScore")
If the variable doesn't exist, VB will throw an error so it's best to use an error handler.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top