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

Botón para lanzar un gráfico en Animate

New Here ,
Mar 10, 2021 Mar 10, 2021

Copy link to clipboard

Copied

Hola a todos

tengo un problema con un tutorial integrado en la versión de adobe animate 2020.

1primero que cree una nueva capa con el nombre "botones"

2 me dice que convierta la capa botones en simbolo

3 establezca el nombre del simbolo en " boton de inicio" y clic de pelicula " boton"

4 haga clic en el simbolo ( botón) y en la pestaña objeto establezca el nombre de la instancia en Launch_btn
repita lo mismo con el cohete y ponga el nombre de cohete

luego me dice que abra " acciones" para el primer fotograma de la capa Rocket_contenedor y en el panel de acciones
escribir " this.rocket.stop( );

luego que entre en la linea de tiempo del cohete , y en el ultimo fotograma, en acciones, escriba " this.stop();

ahora aqui me dice que en el primer fotograma de la capa " boton_de_inicio añada el siguiente script


var_this=this;
this.launch_btn.on("click", funtion(evt) {
this.rocket.gotoAndPlay(0)
});

 

Captura1.PNGCaptura2.PNGCaptura3.PNGCaptura4.PNG

el caso es que confunde que te diga primero el nombre de la capa en " BOTONES" y luego se refiere a la misma capa como " boton de inicio". el caso es que, no funciona nada de ninguna  manera, lo que explica en este tutorial integrado en el sorware de adobe Animate. Si alguien fuera tan amable de ayudarme a enterder cual es el error les estaria muy agradecido.

gracias y saludos.

TOPICS
ActionScript , Code

Views

192

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 ,
Mar 10, 2021 Mar 10, 2021

Copy link to clipboard

Copied

you can name a layer (for convenince), but it will have no functionality and you can't convert a layer to a symbol. 

 

you can convert objects drawn on (or imported to) the stage to a symbol: select the object(s)>right click>click convert to symbol etc.

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
New Here ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

gracias por contestar , aparte de eso me podrias decir si el codigo que pongo ahora esta bien...

 

var. this = this;
this.boton.on("click",
funtion(evt) {
this.cohete.gotoAndPlay(0)
});

el cohete esta anidado en su linea de tiempo, y no se si eso tiene algo que ver, también no se si hacer una capa para acciones o da igual

gracias

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 ,
Mar 11, 2021 Mar 11, 2021

Copy link to clipboard

Copied

no.

 

try:

 

 

var _this = this;
this.boton.on("click",
function(evt) {
_this.cohete.gotoAndPlay(0)
});

 

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
New Here ,
Mar 12, 2021 Mar 12, 2021

Copy link to clipboard

Copied

Muchas gracias, voy a probar 

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 ,
Mar 12, 2021 Mar 12, 2021

Copy link to clipboard

Copied

LATEST

de nada

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