so9
1
Hi
I am ready want help from you. Take a look at http://www26.brinkster.com/nzsmch/nz/index.htm
The top button is everything fine. (home,photo,AboutCH,contact and other links)
- each button use the code:
on(press) {
loadMovieNum(“http://…/home.swf”,1);
}
The problem is inside the photo swf!!!
Go and click photo button. It has 6 buttons (lamp,painting,etc) and then click lamp button.
In lamp button code, i wrote:-
on(press) {
loadmovieNum(“http://…/lamp.swf”,2);
}
It shown up 6 buttons and lamp swf. I dont want both photo.swf and lamp.swf combine together. i dont want to show photo.swf again! HOW DO I FIX THAT?
And another problem is when i am at lamp swf, I click “circle button” under Other Links button. It does not go to photo.swf, How code should i write??
thanks if you can help me out.
system
2
Hi,
I don’t understand your second problem.
To solve the first one add this:
unloadMovieNum(1);
to the button that loads the lamps file (or any other).
Levels load on top of each other and inherit _level0’s background,
so you have to unload (or hide) any unwanted swf in a level.
Does this make sense?
Cheers
SHO
system
3
SHO,
you ask me to add another code “unloadMovieNum”
on (press) {
unloadMovieNum("http://…/photo.swf,1);
loadMovieNum(“http://…/lamp.swf”,2);
}
It wont let me click the lamp button. It seem “no button”. Is there any other idea to fix?
system
4
*Originally posted by so9 *
**
on (press) {
unloadMovieNum("http://…/photo.swf,1);
loadMovieNum(“http://…/lamp.swf”,2);
}
**
Nothing will work, unloadMovieNum only takes one parameter, which is the level. It should be:
unloadMovieNum(1);
Assuming the movie you want to get rid of is in level 1.
Cheers
SHO
system
5
you mean
on(press) {
unloadMovieNum(1);
}
or
on(press) {
unloadMovieNum(1);
loadMovieNum(“http://…/lamp.swf”,2);
}
i try both ways…it still does not get rid of level 1.
system
6
Hi,
just use the same level all the time and so replace one swf with another and so on.
I’m attaching a zip file with three files that do that.
Cheers
SHO
system
7
Ahhhhh thanks SHO
i change level 2 to level1. it works fine. no need to use “unloadMovienum” code
thanks you very much for your help!