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

pass an external variable to a flash movie

Status
Not open for further replies.

c3media

MIS
Sep 24, 2005
47
US
I have a flash movie inside my ASP page that displays a JPG file, but want to make this a variable. I access info from a database and then want to pass the file name for a JPG image into the movie for it to display. What is the syntax to do this? thanks.
 
using the load vars method.

example:
Code:
lv = new LoadVars();
lv.onLoad = function(success) {
	if (success) {
		var thePic = this.pic;
	} else {
		trace("Error. Unable to retrieve feed from server!");
	}
};
lv.sendAndLoad("getPic.asp", lv, "POST");
then your asp would have to output something like: (im not too sure on the asp syntax)
Code:
Response.write("&pic="&picVar)

Regards,

Martin

Computing Help And Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top