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

sending a variable to vb from flash

Status
Not open for further replies.

leearach2004

Technical User
Dec 8, 2005
86
GB
Hi there I have a problem that is realy boggoling me

I have a vb project that calls a variable from a flash movie using
Code:
Dim mess = Me.AxShockwaveFlash1.GetVariable("/:mess")
this works fine

the problem i have is in my flash movie i am using
Code:
on (release) {
	var mess = "bob"
	//var mess = "bob"
	
 //run fs command in vb code
fscommand ( "refreshtext" ,"");
}
this calls the related function in vb and runs fine the only problem i have is the variable mess is set to nothing when the flash movie loads, when the variable is sent to vb it is still nothing the var mess ="bob" is not updating the variable.

I tested this by assigning the word TEST to the mess variable on load of the flash movie and when i sen dthe variable to vb it says TEST not BOB as it has been assign on button click

Souldnt var mess = "bob" change the variable value to bob, dosent seem to for me

hope somone can help me

lee
 
var mess = "bob";

That syntax error will keep the var from initialising with the value.

-a6m1n0

Curiosity only kills cats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top