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! :o :-\
Hope you can help me AGAIN…
Cheers
system
January 27, 2003, 6:30am
2
system
January 27, 2003, 6:52am
3
if it’s working in the main movie … surely the paths are wrong
may i take a look at the files?
system
January 27, 2003, 6:53am
4
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.
system
January 27, 2003, 6:58am
5
I changed it to _parent… no effect though,
have a look
system
January 27, 2003, 7:24am
6
oh dammit !! i hate targetting problems !
that’s what i meant to say in my last post :-\
system
January 27, 2003, 7:34am
7
Yeah… I hate them too! Im startin to think its a bug or somethin cos i cant get it sussed
skid:bounce:
system
January 27, 2003, 7:36am
8
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:
system
January 27, 2003, 8:03am
9
Cheers buddie that seems to be it workin now, phew! :bounce: You can get back to your drink and girls now u stud!
Thanks so much.
Skid :bounce: :bounce:
system
January 27, 2003, 8:07am
10
na … my girlfriend gets really mad when i do that :crazy:
but she doesn’t have to know about it