hi.
This problem is has been annoying me for a while now… so any solutions would be greatly appreciated! Also note im not an expert in flash so try to keep simple if you can
so heres the problem:
im in the process of making this site for a friend of mine (CLICKY! <-- free hoster for now, but when its finished we’l buy a propper one), but now i noticed that if you click the buttons in a certain sequence then they stop loading. (i disabled all the buttons exept the contact button and the philo. (philosophy) buttons).
Click the buttons in this order:
1.contact us
2.go back
3.philo.
4.home
5.philo.
6.home
7.contact us
and youl notice that the contact us box doesnt appear! Also if you do this:
1.philo.
2.home
3.contact us
4.go back
5.philo.
again, the philosophy section doesnt appear.
in short, after the second click on each section (so after it has loaded, since it loads the external swf on the first click in both sections) they disappear. I did a few tests and it turns out that as soon as you click (home / go back) the mc that holds the other swf disappears, as in gets deleted.
actionscript:
tweens:
function changeAway(who) {
var tw:Tween = new Tween(who, "_x", Strong.easeInOut, 0, who._x-750, 1, true);
}
//---------------------------------------------------
function changeBack(who) {
var tw:Tween = new Tween(who, "_x", Strong.easeInOut, 750, 0, 1, true);
}
goback button on contact form:
onClipEvent (enterFrame) {
onRelease = function () {
_root.changeAway(_root.holder.contact);
_root.changeBack(_root.holder.home);
};
}
home button on philosophy page:
onClipEvent (enterFrame){
onRelease = function () {
_root.changeAway(_root.holder.philosophy);
_root.changeBack(_root.holder.home);
};
}
whats going on?
if you need any more script then please post ( and i think this is quite likely since i see nothing wrong with the code above, but since it the holder of the swf gets deleted when the back/ home button of the other swf gets pressed, i thought that would be the problem)
thanks in advance