Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stop Movieclip on mouse out, but also stop sound

Guest
Jan 14, 2019 Jan 14, 2019

Hello, I'm quite new to Action Script and Adobe Animate. I created a movieclip and put a button over it. Then I added an eventlistener to that button, so that the movieclip is playing on mouse hover an another eventlistener that the movieclip stops on mouse out. Everything works fine except that the sound I attached into one layer of the movieclip doesn't stop playing on mouse out, it continues till it ends. Is there a way to make it stop somewhere in the middle of it as well? Hope you can understand my english and my problem.

Greenshot 2019-01-14 14.19.17.pngGreenshot 2019-01-14 14.18.42.png

577
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 14, 2019 Jan 14, 2019

up = auf, should have the stop

Translate
Community Expert ,
Jan 14, 2019 Jan 14, 2019

in the properties panel, assign the sound's 'sync' property to stream.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2019 Jan 14, 2019

this is what your properties should look like.

Screen Shot 2019-01-14 at 1.23.09 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 14, 2019 Jan 14, 2019

thanks a lot! That worked for the sounds in movieclips, but it somehow doesn't work for sounds attached to a button state.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2019 Jan 14, 2019

use start and stop instead of stream.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 14, 2019 Jan 14, 2019

Sorry I'm a little confused here. I tried "start" before, but where should I choose "stop" then?
Greenshot 2019-01-14 23.37.17.pngGreenshot 2019-01-14 23.37.23.png
The left picture is the button where I put the sound on the "over" state. The right picture is the properties panel where I choose "Start" for the sound synchronisation.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 14, 2019 Jan 14, 2019

up = auf, should have the stop

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 15, 2019 Jan 15, 2019

Well, that makes sense. Thanks a lot!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 15, 2019 Jan 15, 2019
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines