i tried this with no luck :o(
ON THE LOADED BACKGROUND:
-----------------------------
_level0.whichBkd = backgrnd2;
stop ();
-----------------------------
AND ON THE CONTROLS:
-------------------------------
tellTarget ("_level0") {
if (whichBkd = backgrnd2) {
gotoAndStop (2);
}
}
-------------------------------
this is probably not the way so please give me some info on this MGB :)
Re: i tried this with no luck :o(
Quote:
Originally posted by Michel
this is probably not the way so please give me some info on this MGB :)
Your idea is basically what I'm on about. On the button or frame event put;
if(_level0.whichBkd == bkgrnd2){
// do some stuff;
} else if (_level0.whichBkd==bkgrnd3){
// do other stuff;
}
On the preloaders of the levels for the background put;
if(_framesloaded==_totalframes){
_level0.whichBkd=bkgrnd2;
}
tell target is deprecated so it's best to use the dot notation.
[Edited by mgb on 04-22-2001 at 10:14 AM]
YES YES YES YES !!!!!!!!!!!!!!!!
It works :)
THANKS MAN !!!!!!!!!!!!
here's why it didn't work the first attempt:
to set the var i had to change it
var whichBkd = bkgrnd3;
into
_level0.whichBkd = "3";
because somehow the var statement only worked when i used a single number instead of the full bkgrnd3
the var did get set but the controls didn't read it :(
Or it might be because i was overlooking something.
Nevertheless (if that's good english :))
YOUR THE MAN !!!!!!!!
IT IS WORKING NOW :D :D :D :D :D
to see that you really helped check:
http://people.a2000.nl/mstaal
Re: YES YES YES YES !!!!!!!!!!!!!!!!
Looked at it more closely
I've tried what you told me but that didn't solve it.
So i looked at it more closely
And the reason why it only working locally is because
there are all 3 of the backgrounds.
Once you've selected all the of the background in the online version it is working.
So for some reason all 3 of the background.swf's must be in the cache :(
Any suggestions?
BTW
I realy appreciate your help and the quick replies :D
Re: Looked at it more closely
Perhaps it is not necessary to use levels. You could use a movie clip for all your backgrounds an use frames in the clip to set the variable. You could also have the nav mc on the root.
You also might try to figure a way to make the variable reset if the swf is reloaded after it is cached so the ifFrameIsLoaded sets the variable and it is also set if it is reloaded.
~mgb
It's working :o)))))))))))))))))))))
I tried and tried and tried and tried :o)
Finally it is working now :)
You where right about the timing thing :) AGAIN !!!
I changed the point of the variable being written from keyframe 1 of the preloader to the last keyframe of the beckground animation (the one containing the stop action)
And now it is working
Thanks for ALL the support and i hope to be of some help in the future
(although i don't think that will happen :o))
Once again
Thanks man :D