Log in

View Full Version : External swfs not loading



cmhan
11-08-2008, 10:32 PM
Hello, Could someone help me figure out why my external swfs are not loading into my empty MC? I am creating a full site in flash, with a short intro animation and transition before button clicks. On button clicks, the transition plays, but the external swfs don't play??

This is the code on my buttons:
I can send fla file if someone can help :-)

b1.onRelease = function() {
if (_root.section != "about.swf") {
_root.section = "about.swf";
_root.transition.gotoAndPlay("closing");
}
};
b2.onRelease = function() {
if (_root.section != "slideshow.swf") {
_root.section = "slideshow.swf";
_root.transition.gotoAndPlay("closing");
}
};
b3.onRelease = function() {
if (_root.section != "media.swf") {
_root.section = "media.swf";
_root.transition.gotoAndPlay("closing");
}
};

Medyman
11-09-2008, 02:17 AM
Are you getting any errors? Are you testing locally or on a server? Are your paths right? Are the variables being set?

webdesignernew
11-10-2008, 10:16 AM
Have you checked that your server allows them?

BLiZZaRD
11-11-2008, 02:56 PM
Just to update, this problem has been fixed. The issue was there was a transition MC which called the loadMovie about 10 frames prior to end. The effect then was that when the button was pressed the transitional MC had to replay to load the movie.

We took the loadMovie code out and placed it in the button actions and then checked which frame the transition MC was on. If it had already played the final frame we left it there (meaning a button had already been pressed). If it hadn't (meaning no button had been pressed yet, this was the first) it would play the transition MC then load the movie.

All is good now :)