Doh!

I have it working perfectly if the counter is in the main movie, but when the counter is in the sounds section and is ‘loadmovied’ into the main movie the counter doesnt work.

I’ve tried changing all the paths to point directly to the files on the server, but it still doesnt work, i’m stumped AGAIN!

Got any idea’s why it wont work if its loaded in an external movie ?

I even changed the php line to:

$counter_File = "http://www.citcacca-hosting-space.gametribe.net/method/counter.txt";

but that didnt help either

this was the code on the timeline…

CLV = new LoadVars();
CLV.onLoad = function() {
texti = unescape(this);
_root.counterViewer.text = texti.substring(0, texti.lastIndexOf("=&"));
};
CLV.load(“http://www.citcacca-hosting-space.gametribe.net/method/counter.txt?ran=”+new Date().getTime());
myButton.onRelease = function() {
CLV.onLoad = function() {
_root.counterViewer.text = this.counter;
getURL(“http://method.p9.org.uk/The%20Method%20-%20Knee%20High%20Boots.mp3”);
myButton.enabled = false;
};
CLV.load(“http://www.citcacca-hosting-space.gametribe.net/method/counter.php?ran=”+new Date().getTime());
};

You must think i’m a right idiot this post is 30 messages long i think! :angry: :o :-\

Hope you can help me AGAIN…

Cheers

and to top it off I posted in the wrong bit !! :scream: :scream: :scream: :scream: :angry:

This post was meant for kax and h88 in the download counter button topic I started.

if it’s working in the main movie … surely the paths are wrong

may i take a look at the files?

It is because the _root of the movie is no longer the _root of the movie when it becomes the movie loaded into another movie.

So you will have to change the _root to _parent instead.

I changed it to _parent… no effect though,

have a look :frowning:

oh dammit !! i hate targetting problems ! :angry:

that’s what i meant to say in my last post :-\

Yeah… I hate them too! Im startin to think its a bug or somethin cos i cant get it sussed :frowning:

skid:bounce:

i removed the _root thing and it seems to be working
leave it as counterViewer.text not _root.counterViewer.text

see it here:
the main movie is called holder
there’s an mc called soundsHolder
and sounds.swf is loaded into soundsHolder

http://members.lycos.co.uk/kaxs/holder.html

all the files used in the above example:

Cheers buddie that seems to be it workin now, phew! :bounce: You can get back to your drink and girls now u stud!:wink:

Thanks so much.

Skid :bounce: :bounce:

na … my girlfriend gets really mad when i do that :crazy:

but she doesn’t have to know about it :wink: