I am starting to get really pi$$ed off with Flash today, I found a bug which wasted me HOURS of time and even now I still can’t get it to work properly.
I have the following code attached to a button within a movie clip with the named instance “mainb”:
on (rollOut) {
_root.main.mainb.roll = true;
}
on (releaseOutside, rollOut) {
_root.main.mainb.roll = false;
}
on the movie clip “mainb” I have the following code:
onClipEvent (enterFrame) {
if (roll==true && _root.main._currentframe>710) {
_root.main.stop()
}
if (roll==false && _root.main._currentframe>710) {
_root.main.play()
}
}
now in my mind this should stop the movie of “_root.main” playing if the button is rolled over & _root.main movie playhead is in a frame higher than 710.
But, needless to say, it doesn’t work. Why is this?
the paths are RIGHT I used the crosshairs to locate them from _root. I tried doing it relatively (ie. _parent etc.) but this didn’t work either.
Please help!