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

ASP to Flash Problem or maybe just me?

Status
Not open for further replies.

megalene

Programmer
Jan 4, 2001
31
Okay here is the problem:
I am trying to load images dynamically into flash based on a click from an html page that does 2 things via javascript.

1. calls html frame page with flash causing it to reload.
2. calls ASP page with a new variable passed to add to a text file which writes it back out to the file.

Now if that didnt make any sense i hope to clear it up here.

THE FLA CODE
Code:
onClipEvent(load) {
	//get image variable
	loadtxt = new loadVars();
	loadtxt.load("/dynimg.asp");
	//create the function to draw out the value from the file
	loadtxt.onload = function() {
		_root.img = this.imgname;
		_root.createEmptyMovieClip("jimg", 4);
		jimg.loadMovie("/images/j/"+this.imgname);
		jimg._x = 0;
		jimg._y = 0;
		//trace(_root.img);
		fscommand("msg","This is from flash: "+this.imgname+" local var: "+_root.img);
		_root.img = ""
		jimg.unloadMovie()
	};

}
I know this is grabbing the image because when i run it from flash it works great. I know my ASP code is working because i check the txt file and it has new value in it based from the passed variable. I even set up, using FSCommand, and alert box to show me values from the

The problem is 2 things:

A. Image wont load in flash when published to my server.
B. Wont change the value taken into flash movie.

Maybe im doing something wrong, i have searched for the past few days looking for a hint of a solution, im thinking its being cached somewhere?

for a visual of whats going on here is a link

thx in advance for any help

Megalene
If you crap it will stink!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top