como realizar graficos con action script
TRANSCRIPT
![Page 1: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/1.jpg)
Como dibujar
Gráficos
con Action
Stript.
![Page 2: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/2.jpg)
Escribimos en la ventana de acciones This.graphis que es el método para crear gráficos.
![Page 3: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/3.jpg)
Le damos propiedades a la variable.
![Page 4: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/4.jpg)
Luego escribimos sus coordenadas.
![Page 5: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/5.jpg)
Aparece nuestra line con el color y coordenadas que le damos.
![Page 6: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/6.jpg)
Luego un cruce de líneas con curva mediante curveto.
![Page 7: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/7.jpg)
Al ejecutarlo nos aparecerá una line recta con otra curva, es importante
determinar el radio de la misma.
![Page 8: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/8.jpg)
Agregamos otra línea cambiando sus coordenadas.
![Page 9: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/9.jpg)
Ahí tenemos nuestra tercera línea.
![Page 10: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/10.jpg)
Con el siguiente código realizaremos un rectángulo Mediante drawRect.
![Page 11: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/11.jpg)
Como las coordenadas no tienen gran diferencia con los otros gráficos, nos aparece
al ejecutarlo encima de ellos.
![Page 12: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/12.jpg)
Podemos mediante drawRoundRect hacer que las esquinas del rectángulo
sean curvas.
![Page 13: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/13.jpg)
Este es el resultado.
![Page 14: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/14.jpg)
Luego vamos a ordenar al computador que nos dibuje un circulo mediante
drawCircle.
![Page 15: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/15.jpg)
Las coordenas son diferentes a la de los otros graficos por eso aparece en otra
ubicación.
![Page 16: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/16.jpg)
Por ultimo se dibujara una elipse mediante drawEllipse.
![Page 17: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/17.jpg)
Aparecerá presionando Ctrl+Intro lo siguiente.
![Page 18: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/18.jpg)
Podemos agregarle relleno a la imagen de nuestra elipse escribiendo regfill y terminamos el relleno con endfill.
![Page 19: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/19.jpg)
El relleno según el color dado en código sexagesimal puede cambiar.
![Page 20: Como realizar graficos con action script](https://reader036.vdocuments.pub/reader036/viewer/2022062319/557b9843d8b42ac9248b462e/html5/thumbnails/20.jpg)
Gracias