Help - My button won't lead to the proper section

  • billielith
  • Student
  • Student
  • User avatar
  • Posts: 65
  • Loc: Canada

Post 3+ Months Ago

Hello. :)

I am currently working on a homework for my Multimedia Class. We need to build our personal portfolio in Flash and eventually post it online.

My portfolio is built in both languages, French and English, which I place on different sections of the timeline.

On my menu #1, I have 2 buttons, one for French, one for English. My problem is that no matter what button I press when testing, I'll end up on the english section. It's the one that is the furthest on the timeline, so I think Flash is ignoring the "stop();" command I've put in the French section and just goes through.

Here's what in my "Actions on buttons" layer where those 2 buttons are.

boutonSplashFr_btn.onPress =
function(){
stopAllSounds();
_root.sonTwo.start(0, 1);
}
setTimeout(dFunction01, 1200);
function dFunction01(){
gotoAndPlay("MenuAniFr");
stop();
}

boutonSplashEng_btn.onPress =
function(){
stopAllSounds();
_root.sonTwo.start(0, 1);
}
setTimeout(dFunction02, 1200);
function dFunction02(){
gotoAndPlay("MenuAniEng");
stop();
}


I checked my instances and they seem ok. Can anyone tell me what I'm doing wrong?
  • roje0913
  • Student
  • Student
  • roje0913
  • Posts: 78

Post 3+ Months Ago

create a frame label in the first frame (or wherever needed) and use _root.gotoAndPlay("labelName") to go to that frame.
  • billielith
  • Student
  • Student
  • User avatar
  • Posts: 65
  • Loc: Canada

Post 3+ Months Ago

---------Thanks, I'll try that and come back to you.


Well it didn't work. I tried inverting the commands, and I get the opposite problem, now both get on the French section. I think there's something wrong with my use of setTimeout, it seems like it's not considered part of what's called on the button.

It seems to solve my problem when I remove the setTimeout, but then I don't get to see my down-button effect because the next page loads too fast.

Any suggestion?

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.