This is my site;
This all works properly offline, but not now the site is online I’m having problems, here’s some of the code in advance;
This is the code in the home page (the large bottom left area),
if (_root.myValue == 0) {_root.container.box.loadMovie("news.swf");
}
else if (_root.myValue != 0) {_root.container.box.loadMovie("contact.swf");
}
myValue is set to 0 when the main page loads at the beginning, which is why the white box appears (“news.swf”).
The news page also has the following code at the end which opens the curtains if they are closed (you can see the curtains close by clicking the films button).
if (_root.curtains._currentframe == _root.curtains.midframe)
_root.curtains.play();
Now, the news and contact buttons are programmed so that if the home page is loaded, they load news.swf, or contact.swf. If the home page is not loaded, they load the home page, and set myValue to either 0, or 1, so that when home loads, it loads the correct news or contact page.
The code on the news button is this, (I’m using page transitions from the Kirupa tutorial, so that’s why there’s a lot of extra code);
this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "home";
_root.container.loadMovie("home.swf");
} else if (_root.currMovie != "home") {
if (_root.container._currentframe >= _root.container.midframe) {
_root.currMovie = "home";
_root.container.play();
}
if (_root.curtains._currentframe < _root.curtains.midframe)
_root.curtains.play();
}
if (_root.container.box.currMovie == undefined) {
_root.container.box.currMovie = "news";
_root.container.box.loadMovie("news.swf");
}
else if (_root.container.box.currMovie != "news") {
_root.container.box.currMovie = "news";
_root.container.box.loadMovie("news.swf");
}
_root.myValue = 0;
So that, in order, will firstly load home if it is not loaded, if the curtains are open it will close them to hide the page change, if home is already loaded, it will change the page in .box to news.swf, and finally it changes myValue to 0. Contact button is the same code with the news.swf link changed to contact.swf.
Finally, the Problem;
This all works offline, but online the only time news.swf loads is at the very beginning, in which case it doesn’t load the text. If you click news/contact on the home page, it won’t change the news/contact pages (white box). And if you go to a film page, then click news or contact, it loads home, but does not load news/contact, (because they would cause the curtains to open if they had loaded).
Sorry for the masses of detail, but I figured I’d have to type it all in reply to messages if I didn’t do it all firstly!
Any help would be much appreciated!