hello, i'm fabio from italy,
i have a problem with action script, infact i can't pass to another scene from clip event.
the movie is composed by 3 scene,
1 - "urlo"
2 - "scritte"
3 - "logo"
the code that i have implemented that point in the 3rd scene, always pass me through first scene !!!
this is the code...
the problem is in the gotoandplay command ---->
onClipEvent (enterFrame) {
x = 0;
y = 0;
ciclo = 0;
_level0.displaybox = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
_level0.displaybox1 = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
displaybox2 = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
while (x<1000) {
x++;
}
z++;
if (z == 40) {
cuoresuono = new Sound(this);
cuoresuono.attachSound("disco"
cuoresuono.setVolume(250);
cuoresuono.start(0, 1);
s++;
while (y<25000) {
y++;
}
z = 0;
if (s == 1) {
h = "ciao";
--------> _root.gotoAndPlay ("logo", 1);
}
}
}
thanks in advance for help me !!!!
ps. i have try to make a label in the first frame of the scene calling "logo" but it's the same thing.
thanks
fabio visentin
i have a problem with action script, infact i can't pass to another scene from clip event.
the movie is composed by 3 scene,
1 - "urlo"
2 - "scritte"
3 - "logo"
the code that i have implemented that point in the 3rd scene, always pass me through first scene !!!
this is the code...
the problem is in the gotoandplay command ---->
onClipEvent (enterFrame) {
x = 0;
y = 0;
ciclo = 0;
_level0.displaybox = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
_level0.displaybox1 = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
displaybox2 = eval("_level0.string"+(Math.floor(Math.random()*8)+1));
while (x<1000) {
x++;
}
z++;
if (z == 40) {
cuoresuono = new Sound(this);
cuoresuono.attachSound("disco"
cuoresuono.setVolume(250);
cuoresuono.start(0, 1);
s++;
while (y<25000) {
y++;
}
z = 0;
if (s == 1) {
h = "ciao";
--------> _root.gotoAndPlay ("logo", 1);
}
}
}
thanks in advance for help me !!!!
ps. i have try to make a label in the first frame of the scene calling "logo" but it's the same thing.
thanks
fabio visentin