Skip to main content
Participant
April 11, 2009
Answered

Mysteriously disappearing from text out of scroller and buttons you can press twice

  • April 11, 2009
  • 1 reply
  • 536 views

Hi

I have the weirdest problem. It’s a bit difficult to explain so I’ll add a link to the swf.

http://users.telenet.be/paraat/Infinite%20Horizontal%20Slider%20klad9/001.swf


The problem is:
When I press my buttons twice, the text in the scroller disappears. Everything is set so that It shouldn’t be possible to press the same button twice though.

The situation in short is as follows. I have 4 scenes and 4 buttons, every button linking to respectively another scene / page. The buttons all are in movieclips. I have 4 different movieclips all containing all buttons. For the ‘nieuws’ page movieclip the ‘nieuws’-button in the movieclip gets “switched of” by ungrouping it and so on, and so on.On every scene I put the movieclip, with the correct button switched of, on top, with the ‘swapDepths’ function. The other movieclips are made invisible by the ‘_visible = true’ + ‘delete this.onEnterFrame;’ function.

Anyone knows how I can solve this?

the .fla and the rest of the files or to be found right here:
http://users.telenet.be/paraat/Infinite%20Horizontal%20Slider%20klad9/

I’m not a develloper but a graphic designer. Don’t know much about AS2. I bought the photoslider and textscroller on FlashDen and thought I’d finnish of this project pretty quickly, but I’m thinking “I’m almost there” for already many hours now.

Thanks

This topic has been closed for replies.
Correct answer kglad

it would help to see your button code.  (not many will download your fla.)

but if you're using a gotoAndStop(), you're going to have problems.  you might be able to solve your problems by labelling the frames just prior to your current target frames and placing a stop() in your current target frames.  then use gotoAndPlay() to the labelled frames.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 11, 2009

it would help to see your button code.  (not many will download your fla.)

but if you're using a gotoAndStop(), you're going to have problems.  you might be able to solve your problems by labelling the frames just prior to your current target frames and placing a stop() in your current target frames.  then use gotoAndPlay() to the labelled frames.

J-dKAuthor
Participant
April 11, 2009

i just did it your way and it works!!

thank you so so much!!

no need to put the button code up anymore.

tssk, how utterly simple, but strange also.. a bit.. to me at least.

thanks again!!!!!

kglad
Community Expert
Community Expert
April 11, 2009

you're welcome.

the problem occurs when the playhead is on a particular frame (say "thisFrame") and you execute a gotoAndPlay("thisFrame"):  even if there is a stop in "thisFrame" the playhead advances down the timeline to the next frame with a stop() in it and stops and that's not what you want to happen.

there are other ways to handle this including using an if-statement to check if the playhead is on "thisFrame" and, if so, do not execute the gotoAndPlay("thisFrame").