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

Loadvars() problem

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
0
0
GB
The following action script is in frame 2 of a 3 frame timeline. The onload section of the function is not working but the same function works ok in another .fla file.
The data is being called from a Perl script.
Code:
if (q < text.length) {
	textbox = text.substring(0, q);
	q++
} else {
[red]
	textbox = text;
	q=1;

	trace ("start");
	myData = new LoadVars(); 
	trace ("new");
	myData.load("...domain.../cgi-bin/moors.cgi?call=newsitem&Ran="+random(999));
	trace ("load");
	myData.onLoad = function(succes){ 
	trace ("on");
	        if(succes){ 
			trace ("suc");
		}
	}
	trace ("again");
	gotoAndPlay(2);
[/red]
}

Results

Code:
start
new
load
again

Can another pair of eyes spot anything obvious which I am over looking?

Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top