PDA

View Full Version : loadMovie not working in new domain


Sirius
04-17-2007, 10:42 AM
I have just transferred a newly-finished site from my testing domain to the clients domain and have discovered an issue with the loading of a movie. The site has a preloader and once this has completed it advances the playhead to a frame labelled site. Here's that code:
factor=_root.getBytesLoaded()/_root.getBytesTotal();
loaded=int(factor*100)+"%";
if (factor>=1) {
_root.gotoAndPlay("site");
}
On the same frame number as the site label is the banner with navigation and an mc called page_mc. 5 frames later there is a new frame label called home with the action
page_mc.loadMovie("home.swf");

This all worked fine in my domain where I was developing & testing the site, but now I have transferred to the clients URL http://www.stormlondon.co.uk/stormnightclub.htm this is no longer working! The banner loads but the home page does not load until you click the button...

This is not a crossdomain issue as far as I am aware and I believe all my paths are correct.

Can anyone suggest a solution please.

Paul Ferrie
04-17-2007, 10:48 AM
Can you post a link to your developer server?

Paul Ferrie
04-17-2007, 10:49 AM
Do u have a preloader in home.swf?

Sirius
04-17-2007, 11:09 AM
My developer server URL is http://www.designermagic.co.uk/storm/

Yes - I do have a preloader in the home swf with this code amendment:
factor=getBytesLoaded()/getBytesTotal();
loaded=int(factor*100)+"%";
if (factor>=1) {
gotoAndPlay("start");
}

Sirius
04-17-2007, 11:18 AM
Paul

Thank you for the reply - it made me look again at the home.swf preloader where I found the problem...

My loader_bar mc had a reference to the _root timeline:
onClipEvent (enterFrame) {
_xscale = int(_root.getBytesLoaded()/_root.getBytesTotal()*100);
}
Removing this sorted the problem.

Thanks again for the prompt.

Paul Ferrie
04-17-2007, 11:18 AM
Seems to be working fine now.

Paul Ferrie
04-17-2007, 11:19 AM
Paul

Thank you for the reply - it made me look again at the home.swf preloader where I found the problem...

My loader_bar mc had a reference to the _root timeline:
onClipEvent (enterFrame) {
_xscale = int(_root.getBytesLoaded()/_root.getBytesTotal()*100);
}
Removing this sorted the problem.

Thanks again for the prompt.
ah nice one. Glad you got it sorted so quickly. i was s starting to think WTF is going on here.