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

Bug au niveau des Sons (écho) dnas du HTLM

Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Bonjour Est-ce que quelqu'un peu m'aider ?

depuis la version 2019 je n'arrive plus a créer des HTLM sans qu'il y ai de l'écho dès que je reclique sur un des boutons... avez-vous une solution ? est-ce que mes codes ne sont pas bon ?

est-ce que cela vous est arrivés ?

Views

245

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Hi.

 

What do you mean by echo?

Can you provide a video recording or a screenshot?

 

Regards,

JC

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Thanks for the video.

 

Are you using code to play the sounds? It seems to me that you are not stoping the current sound before playing the next one.

 

Can you check this?

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

voici le code pour un bouton le son est bien stoppé normalement

 

this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));

function fl_ClickToGoToAndStopAtFrame_1()
{
this.gotoAndStop(275);
createjs.Sound.stop(271);

}

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Thanks.

 

Try stopping the current sound before going to another frame. And the stop method from the Sound class doesn't take any arguments.

Like this:

this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));

function fl_ClickToGoToAndStopAtFrame_1()
{
    createjs.Sound.stop();
    this.gotoAndStop(275);
}

 

Also, you need to make sure that you're not readding the same event listener to the same button everytime a frame is revisited. I recommend that you place a check in each frame like this:

function fl_ClickToGoToAndStopAtFrame_1()
{
    createjs.Sound.stop();
    this.gotoAndStop(275);
}

if (!this.frame0Started) // frame0Started is just a custom property that I created
{
    this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));
    this.frame0Started = true;
}



Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Merci pour votre réactivité,

Merci je vais tester ce code !!!

"Also, you need to make sure that you're not readding the same event listener to the same button everytime a frame is revisited. " c'est sur que non, chaque bouton a son animation differente.

 

"Try stopping the current sound before going to another frame. And the stop method from the Sound class doesn't take any arguments." Déjà testé et il y a toujours de l'écho !

 

Merci pour votre retour ! je vous tiens au courant dès que j'ai fini .

 

 

 

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

ha ça ne fonctionne pas ....

 

est-ce que je ne me suis pas trompée dans le code ? :

 

this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));

function fl_ClickToGoToAndStopAtFrame_1()
{
this.gotoAndStop(275);
createjs.Sound.stop(271);
}
if (!this.frame0Started) // frame0Started is just a custom property that I created
{
this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));
this.frame0Started = true;
}

 

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

You need to call the stop method before going to another frame as I suggested above.

 

function fl_ClickToGoToAndStopAtFrame_1()
{
    createjs.Sound.stop();
    this.gotoAndStop(275);
}

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Je suis désolée mais ce la fonctionne toujours pas ... 😞

this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));

function fl_ClickToGoToAndStopAtFrame_1()
{
		createjs.Sound.stop();
		this.gotoAndStop(275);
}
if (!this.frame0Started) // frame0Started is just a custom property that I created
{
    this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));
    this.frame0Started = true;
}

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

This statement is repeated:

this.Btcarsat.addEventListener("click", fl_ClickToGoToAndStopAtFrame_1.bind(this));

 

Please remove it from the top (first line).

 

If that still doesn't work, do you mind sharing a link to your FLA?

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Non toujours pas.

comment puis-je vous envoyer le FLA ?

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Please upload it to a file sharing service like Creative Cloud, Google Drive, Dropbox, WeTransfer and paste the link here.

Votes

Translate

Translate

Report

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 ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Or send me a DM if you don't want to make your file public.

Votes

Translate

Translate

Report

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
Explorer ,
Jun 29, 2022 Jun 29, 2022

Copy link to clipboard

Copied

Bonjour, et merci ! désolée aussi de ma reponse tardive. j'étais en formation pendant 2 jours.

je vois que cela focntionne super bien !

Merci enormément de votre aide et d'avoir pris du temps pour débugger mon problème ça doit faire 2 ans que je galère et personne n'a pu m'aider même pas Adobe !!!

je vais appliquer vos conseils et essayer de gerer une nouvelle animation pour vois si j'y arrive !

je vous tiens au courant !!

encore un grand merci !!!

Laure

Votes

Translate

Translate

Report

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 ,
Jun 29, 2022 Jun 29, 2022

Copy link to clipboard

Copied

Hey, Laure! You're welcome!

I'm really glad things are working now!

Regards,

JC

Votes

Translate

Translate

Report

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
Explorer ,
Jun 29, 2022 Jun 29, 2022

Copy link to clipboard

Copied

LATEST

Finalement en travaillant seule sur un nouveau fichier cela ne fonctionne pas ... (pourtant j'ai fait exactement comme vous !!!)

est-ce possible que cela vienne de mes paramètres Adobe Animate ?

 

Votes

Translate

Translate

Report

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
Explorer ,
Jun 24, 2022 Jun 24, 2022

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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