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

**URL:** <https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747>\
**Category:** flash\
**Created:** [November 27, 2002, 4:36pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747 "2002-11-27T16:36:17Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:14pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/41 "2002-12-03T16:14:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:22pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/42 "2002-12-03T16:22:55Z")

</div>

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 😏

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:35pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/43 "2002-12-03T16:35:43Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:39pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/44 "2002-12-03T16:39:56Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:41pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/45 "2002-12-03T16:41:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:42pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/46 "2002-12-03T16:42:21Z")

</div>

forgot to mention, put yours online , worked fine 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:47pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/47 "2002-12-03T16:47:03Z")

</div>

ah good, that will save us both lots of time 😉

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:49pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/48 "2002-12-03T16:49:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:53pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/49 "2002-12-03T16:53:47Z")

</div>

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”);  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 4:54pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/50 "2002-12-03T16:54:44Z")

</div>

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](http://www.kirupaforum.com/showthread.php?s=&threadid=10061)

=)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:02pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/51 "2002-12-03T17:02:00Z")

</div>

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

this is by changin the var in the external movies

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:03pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/52 "2002-12-03T17:03:01Z")

</div>

> \*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!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:04pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/53 "2002-12-03T17:04:14Z")

</div>

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

well i will find out, lol

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:08pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/54 "2002-12-03T17:08:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:10pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/55 "2002-12-03T17:10:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:16pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/56 "2002-12-03T17:16:15Z")

</div>

> \*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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:30pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/57 "2002-12-03T17:30:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:31pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/58 "2002-12-03T17:31:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:37pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/59 "2002-12-03T17:37:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 3, 2002, 5:50pm UTC](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747/60 "2002-12-03T17:50:23Z")

</div>

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

Very nice, liked a lot!

Good job!

=)

[Previous page](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747.md?page=2)

[Next page](https://forum.kirupa.com/t/f5-a-true-challenge-who-can-help-me-to-get-this-script-working/8747.md?page=4)
