how can i reset the movie
thankyou Chook and Kay Siegert for your help ---i still have a problem --i am very new to actionscript and am having difficulty
1. i dont understand how to label a frame and make the actionscript respond to that--here is what i have at the moment on the reset button
on (release) {
setProperty (_root.spike, _x, "350");
setProperty (_root.spike, _y, "350");
setProperty ("_root.spike", _xscale, "100");
setProperty ("_root.spike", _yscale, "35");
setProperty ("_root.spike", _alpha, "100");
setProperty ("_root.spike", _visible, "1");
tellTarget (_root.spike. _y) {
gotoAndStop ("reset");
}
tellTarget (_root.spike._x ) {
gotoAndStop ("reset");
}
}
response from generator when i press the reset button
Target not found: Target="350" Base="_level0"
Target not found: Target="350" Base="_level0"
i dont no what to do from here --lost --Terry
Re: how can i reset the movie
that´s your code:
on (release) {
setProperty (_root.spike, _x, "350");
setProperty (_root.spike, _y, "350");
setProperty ("_root.spike", _xscale, "100"); // don´t use quotation marks with numbers
setProperty ("_root.spike", _yscale, "35");
setProperty ("_root.spike", _alpha, "100");
setProperty ("_root.spike", _visible, "1");
tellTarget (_root.spike. _y) { // remove the "._y" - you can´t tell something to a coordinate ;)
gotoAndStop ("reset");
}
tellTarget (_root.spike._x ) { // pp.
gotoAndStop ("reset");
}
}
try to use f5 syntax:
on (release){
_root.spike._x = 350;
_root.spike._y = 350;
_root.spike._xscale = 100;
// ... and so on
_root.spike.gotoAndPlay("reset");
}
you have 2 tellTarget´s. what are you trying to do?
k.