{F5} a true challenge : who can help me to get this script working?

by the way, try my suggestion of puting my fla./swf on your webserver and see if it has the same problem.

if yes, it would be the code, if not it would be either the implementaion of it in your fla, or perhaps you loading the external swf’s the first time around.

maybe this will help,

I have the same method as you ,

but on the last frame on the main swf (which holds all buttons background, and opening animation) there is this code

stop();
thumbclip = “”;
loadMovie(“home.swf”, “_root.content”);
loadMovieNum(“song3.swf”, 6);

so its loading a external into the target “content” as a frame action. then later will be replaced when you click on a button, as the buttons have this code.

on (release) {
unloadMovieNum(7);
nextMovie2 = “profile2.swf”;
thumbSWFclip = “1”;
if (thumbclip == “”) {
thumbclip = “1”;
cover.gotoAndPlay(“close”);
} else {
thumbclip = “1”;
}
}

this is for profile ,

so when this is clicked it goes into the _root.cover which you called _root.thumbcover

and plays the animation (same as your method in here, though change of

loadMovie(_root.nextMovie2, _root.content);

then in the external i have 3 actions , the preloader info that uses the _root.cover.preloader and the
go to and then the

thumbSWFclip = “1”;
_root.thumbclip = “1”;

then at the end of the external swf.

stop();
_root.thumbclip = “”;
if (_root.thumbSWFclip ne “1”) {
_root.cover.gotoAndPlay(“close”);
_root.thumbclip = “6”;
} else {
gotoAndStop;
}

this is pretty much the same for all the rest of the externals

thats basically it.

thanx for even considering helping, i appreciate it :smirk:

iam pretty sure it has to do something with that first external movie, cause it is the one that you are seeing being loaded every time, the weird thing is , is that it only happens once, when you press it , it happens then the next time the link will work , and the next time and the next time, until u delete for temp files, thats whats got me puzzled, theres nuthin in my fla relating to cookies??

well, in my case the 4 swf don’t even load in the content MC you set. However, the coverMC is being called.

so:

either the var for the SWF is not being set /or remembered (maybe you set it local while it needs to be global?).

in the cover it does not tell the SWF properly to be loaded.

in the SWF itself something goes wrong with the preloading part…

the thing is that it does load something, only the wrong SWF. It’s not that the preloader won’t stop playing or so.

so in the coverMC it calls the wrong SWF.
So maybe it is a var problem afterall?

check your path’ to the vars, so both setting and checking for the vars.

and try to put my .fla turned into swf plus ext 3 swf’s online and see if it has the same problem. This should rule out quite a few options and should indicate where to look :slight_smile:

the thing is, when I try, none of your new 4 ext. swf’s work.
I constantly load the welcome swf, despite clicking hundreds of times on the buttons…

ie5 PC by the way, Flash 6 playing it in my browser.

forgot to mention, put yours online , worked fine :slight_smile:

ah good, that will save us both lots of time :wink:

see my post before your last one, in case you missed it :slight_smile:

how do you set a variable global? ill check out the rest though.

could this be a problem ? first frame external movie profile.swf

// checks to see if the external movie (this) is fully loaded
if (this.getBytesLoaded()<this.getBytesTotal()) {
Total = this.getBytesTotal()/1000;
Received = this.getBytesLoaded()/1000;
Percentage = (Received/Total)*100;
// tell the progress bar animation (located in the thumbcover mc)
// to go to a frame between 0 and 100
_root.cover.preloader.gotoAndStop();
} else {
// when its fully loaded
gotoAndPlay(7);
// tell the thumbcover mc to play its opening animation
_root.cover.gotoAndPlay(“open”);
}

I agree with ericinho, it is hard to see the problem withou seeing the fla. Anyway, check this topic about global variables, hope this help you soulty.

global var using in Flash MX

=)

so most external swf would need the var to be global?

this is by changin the var in the external movies

*Originally posted by Soulty *
**could this be a problem ? first frame external movie profile.swf

// checks to see if the external movie (this) is fully loaded
if (this.getBytesLoaded()<this.getBytesTotal()) {
Total = this.getBytesTotal()/1000;
Received = this.getBytesLoaded()/1000;
Percentage = (Received/Total)*100;
// tell the progress bar animation (located in the thumbcover mc)
// to go to a frame between 0 and 100
_root.cover.preloader.gotoAndStop();
} else {
// when its fully loaded
gotoAndPlay(7);
// tell the thumbcover mc to play its opening animation
_root.cover.gotoAndPlay(“open”);
} **

I doubt it, cos it would not explain why it constantly loads the welcome.swf file. Mind you, the file works, so it means that the wrong swf is being loaded in my opinion.

Hey I gotto go. Have to cook dinner for my girl and I. I will check again tomorrow morning. Hopefully my humble contributions can steer you in the right direction.

Goodluck!

most probably by flash just exiting , cause of the externals not being global?

well i will find out, lol

my guess remains that either when you click the button it doesn’t set a correct var

or when the coverMC is playing and reaches the ext. swf loading part, it either doesn’t find the right var which tells him which swf to play.

could be a path thing.

but then your swf worked online, so like your saying it might be the code the way i ve done it, though it’s not wrong, iam pretty sure of it

my first button set the next movie var to profile.swf and then so the _root.cover

stop();
// load whatever external movie is stored in our nextMovie2 var
loadMovie(_root.nextMovie2, _root.content);

so the var is set and should load

*Originally posted by Soulty *
**but then your swf worked online, so like your saying it might be the code the way i ve done it, though it’s not wrong, iam pretty sure of it

my first button set the next movie var to profile.swf and then so the _root.cover

stop();
// load whatever external movie is stored in our nextMovie2 var
loadMovie(_root.nextMovie2, _root.content);

so the var is set and should load **

maybe best thing to do is to see what is different between your and my file and start looking there at first?

i got rid of the external movie coming in as a frame action, posted it and still it happens , i think your right iam lookin in the wrong place, ill look into your file and check if ive done anything wrong, thanx Guig0 with the global read up,

though it looks like its not the problem. as ericinho’s file was working when i uploaded it.

btw , what do you think of how the sites lookin at the moment?

the movie i have loading in as a frame actions dosent need to have variables set for it , does it??

because its only getting called in at the start then its taken over when a button is clicked, btw i have two home.swf , one is home.swf and the other is home2.swf, home is being called at the start and home2 is when u press the button home,

so do you think home.swf needs code?

*Originally posted by Soulty *
**btw , what do you think of how the sites lookin at the moment? **

Very nice, liked a lot!

Good job!

=)