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

Movie loads in authoring environment but not in web

Status
Not open for further replies.

MJB3K

Programmer
Joined
Jul 16, 2004
Messages
524
Location
GB
Hi, i am developing a flash website and just wondering why it loads the external swf in when i preview in flash, but not when i preview or view it in a web browser.

This is what i have on my AS on my main movie:
Code:
//loadMov function code.
function loadMov(theMov, par) {
	_global.theMovLoad = "";
	_global.theMovLoad = theMov;
	_global.pars = "";
	_global.pars = par;
	_root.preloaderMC.gotoAndPlay(2);
}
//
//load the default movie in.
function loadDefault() {
	trace("loading");
	loadMov("home");
	//delete this.onEnterFrame;
}
loadDefault();
This is what i have on my preloaderMC:
Code:
if (_global.pars != "") {
	var usr = _global.pars;
}
rand = random(100);
unloadMovie(_root.containerMC);
if (pars != "") {
	trace("loading wiv var");
	_root.containerMC.loadMovie("[URL unfurl="true"]http://www.team-mindgames.co.uk/fx/mgames_"+theMovLoad+".swf?id="+usr+"&"+rand);[/URL]
} else {
	_root.containerMC.loadMovie("[URL unfurl="true"]http://www.team-mindgames.co.uk/fx/mgames_"+theMovLoad+".swf?"+rand);[/URL]
}
//_root.containerMC.loadMovie("[URL unfurl="true"]http://www.team-mindgames.co.uk/fx/phirax.swf?"+rand);[/URL]
//stop();
The rest of the preloader is basically the one that oldnewbie wrote.

This has never happened before... Why would it happen now?

Regards,

Martin

Computing Help And Info:
 
Ive solved the problem, it works when its on a webserver, but not on a local file:// for some reason.

Regards,

Martin

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

Part and Inventory Search

Sponsor

Back
Top