Question
swapDepths problems
On my main timeline is a clip 'photobook'
within one of the frames of photobook, sit two other clips, 'news1' 'news2'
when either news clip is clicked, a larger version of the image appears, complete with a close button to close the larger image and return to the original. I had some problems with overlapping clips. to remedy this I added this script to the movieclip:
on (release) {
this.myButton.gotoAndStop(2);
this.swapDepths(20000);
}
myButton refers to another clip within the news clip which activates the 'larger version.
I now have no problem with overlapping, BUT
if i close the original photobook clip (using a close button which returns it to the first, invisible frame of the clip) or navigate to the next frame of photobook, the last news clip clicked on stays on screen, even though it technically only exists in that one frame of photobook.
I know the problem is with swapDepths, as when deleted, the overlapping returns but not the problem of the clip staying on where it shouldn't!
this is for my uni project and i am at the end of my tether so please help!!
within one of the frames of photobook, sit two other clips, 'news1' 'news2'
when either news clip is clicked, a larger version of the image appears, complete with a close button to close the larger image and return to the original. I had some problems with overlapping clips. to remedy this I added this script to the movieclip:
on (release) {
this.myButton.gotoAndStop(2);
this.swapDepths(20000);
}
myButton refers to another clip within the news clip which activates the 'larger version.
I now have no problem with overlapping, BUT
if i close the original photobook clip (using a close button which returns it to the first, invisible frame of the clip) or navigate to the next frame of photobook, the last news clip clicked on stays on screen, even though it technically only exists in that one frame of photobook.
I know the problem is with swapDepths, as when deleted, the overlapping returns but not the problem of the clip staying on where it shouldn't!
this is for my uni project and i am at the end of my tether so please help!!