Sound Control Issue

  • RockmanTV
  • Proficient
  • Proficient
  • RockmanTV
  • Posts: 348

Post 3+ Months Ago

One one frame I have this code in a button:

Code: [ Select ]
on (release){
    _global.myLoopVolume=20;
    gotoAndPlay ("on");
}
  1. on (release){
  2.     _global.myLoopVolume=20;
  3.     gotoAndPlay ("on");
  4. }


Then in the following frame (on) I have this actionscript in the frame itself:

Code: [ Select ]
if (myLoopVolume==20) {
    SoundLevel20.gotoAndPlay("on20");
    myLoop.setVolume(20);
}
  1. if (myLoopVolume==20) {
  2.     SoundLevel20.gotoAndPlay("on20");
  3.     myLoop.setVolume(20);
  4. }


However the movie clip SoundLevel20 plays the on20 frame then stops. It doesn't play like it should. It's doing what the function gotoAndStop would normally do. What's going on? I've tried both gotoAndStop and gotoAndPlay. They both do the same thing. It makes no sense :?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Natal
  • Beginner
  • Beginner
  • Natal
  • Posts: 49
  • Loc: Transylvania

Post 3+ Months Ago

HI

If gotoAndPlay and gotoAndStop do the same thing, this means that something stops the movie at that point. You should try to find that something.

Sorry, but there's not too much we can help with this info. The problem is somewhere else.
  • mahjik
  • Novice
  • Novice
  • mahjik
  • Posts: 33
  • Loc: Las Cruces, NM USA

Post 3+ Months Ago

is there visual content that lets you confirm gotoAndPlay and gotoAndStop do the same thing? or is it the results of your sound that leads you to this conclusion? It's hard to help without seeing a more complete example of the code. if its the sound, then it could be something as easy as it being a streaming sound, and not having enough frames after its attach point for it to play.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 7 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
 
 

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