ltren
03-14-2002, 10:38 AM
im a brand NB, so this might be obvious, but..
i have the following on a frame:
stop ();
if ((_root.bottle1._x<_root.bottle2._x) && (_root.bottle2._x<_root.bottle3._x)
&& (_root.bottle3._x<_root.bottle4._x) && (_root.bottle4._x<_root.bottle5._x)
&& (_root.bottle6._x<_root.bottle7._x) && (_root.bottle7._x<_root.bottle8._x)
&& (_root.bottle8._x<_root.bottle9._x) && (_root.bottle9._x<_root.bottle10._x)){
gotoAndPlay("even");
trace ("alphabetical");
}
I know there is probably some sort of loop that would work better than that unwieldy expression, but my problem is, I can't get it to move to the frame "even". the trace is working, so I know that the conditions have been met. Is this not allowable on a frame?
it works on a button, but i dont want to use a button. its not consistent with my concept. so i'm not sure of the best way to go about checking that the condition is met and then moving teh playhead.
sorry if this has been answered. i did try to specify a path:
_root.gotoAndPlay("even")
but i didnt really understand why that was necessary adn it didnt work, so i think this is a different problem.
please help if you can, thank you
l
i have the following on a frame:
stop ();
if ((_root.bottle1._x<_root.bottle2._x) && (_root.bottle2._x<_root.bottle3._x)
&& (_root.bottle3._x<_root.bottle4._x) && (_root.bottle4._x<_root.bottle5._x)
&& (_root.bottle6._x<_root.bottle7._x) && (_root.bottle7._x<_root.bottle8._x)
&& (_root.bottle8._x<_root.bottle9._x) && (_root.bottle9._x<_root.bottle10._x)){
gotoAndPlay("even");
trace ("alphabetical");
}
I know there is probably some sort of loop that would work better than that unwieldy expression, but my problem is, I can't get it to move to the frame "even". the trace is working, so I know that the conditions have been met. Is this not allowable on a frame?
it works on a button, but i dont want to use a button. its not consistent with my concept. so i'm not sure of the best way to go about checking that the condition is met and then moving teh playhead.
sorry if this has been answered. i did try to specify a path:
_root.gotoAndPlay("even")
but i didnt really understand why that was necessary adn it didnt work, so i think this is a different problem.
please help if you can, thank you
l