结合JSFL/actionscript 实现轮廓动画
动画前半段通过JSFL获取轮廓数据,并在EnterFrame中逐个边缘画出的;后半段机枪动画是美术做好的flash动画。
这里只放出actionscript代码,而JSFL代码涉及到一个工程,暂时保密。
package
{
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events.Event;
import flash.utils.setTimeout; /**
*
* @author kenkozheng
*/
[SWF(width = "300", height = "550", frameRate = "24", backgroundColor = "0xAAAAAA")]
public class Test2 extends Sprite
{
public static const WIDTH:int = 60;
public static const HEIGHT:int = 20; [Embed(source="send.swf")]
private var GUN:Class;
private var ptArray:Array = [80.6,433.9,80.4,433.55,80.3,433.15,80.3,433.15,79.95,431.85,80,430.3,80,430.3,83.15,428.4,86.35,426.45,86.35,426.45,86.75,426.25,87.1,426,87.1,426,87.5,425.75,87.85,425.5,87.85,425.5,89.4,424.7,90.9,423.85,90.9,423.85,89.05,421.5,87.65,418.5,87.65,418.5,87.55,418.3,87.6,418.15,87.6,418.15,87.6,417.95,87.65,417.75,87.65,417.75,90.75,401.75,94.05,396.05,94.05,396.05,95,394.55,96.15,393.7,96.15,393.7,97.45,392.65,99.7,392.25,99.7,392.25,99.85,391.85,99.95,391.45,99.95,391.45,100.25,390.65,100.5,389.9,100.5,389.9,100.35,389.55,100.2,389.25,100.2,389.25,99.8,388.45,99.45,387.7,99.45,387.7,99.4,387.65,99.4,387.6,99.4,387.6,99.6,387.05,99.8,386.5,99.8,386.5,98.15,385.75,96.2,385.2,96.2,385.2,94.25,384.75,92.1,384.45,92.1,384.45,91.85,385,91.6,385.55,91.6,385.55,90.65,386.05,89.55,386.15,89.55,386.15,89.35,386.1,89.25,386.1,89.25,386.1,88.3,386.1,87.7,385.8,87.7,385.8,87.05,385.4,86.6,384.75,86.6,384.75,86.1,384.15,85.8,383.25,85.8,383.25,90.7,366.5,95.6,349.75,95.6,349.75,95.6,349.7,95.65,349.7,95.65,349.7,95.6,349.55,95.7,349.55,95.7,349.55,96,348.45,97.25,348,97.25,348,98.8,347.55,100.5,348.1,100.5,348.1,102.1,348.6,103.15,349.8,103.15,349.8,104.1,350.8,103.85,351.9,103.85,351.9,103.85,351.9,103.8,351.9,103.8,351.9,103.7,352.15,103.75,352.2,103.75,352.2,103.4,353.15,103,354.05,103,354.05,106.2,354.75,107.8,354.45,107.8,354.45,107.65,354.1,107.5,353.75,107.5,353.75,108.9,345.7,110.25,337.65,110.25,337.65,110.7,327.4,120.05,324.35,120.05,324.35,120.1,324.3,120.2,324.35,120.2,324.35,121.6,323.8,123.35,323.55,123.35,323.55,123.55,323.6,123.8,323.65,123.8,323.65,136.4,322.95,145.95,329.5,145.95,329.5,155.05,335.7,158.35,345.25,158.35,345.25,158.55,345.25,158.5,345.55,158.5,345.55,158.7,349.7,156.65,354.6,156.65,354.6,151.15,362.35,145.65,370.05,145.65,370.05,144.4,371.05,142.45,371.65,142.45,371.65,140.1,372.35,136.75,372.5,136.75,372.5,134.1,378.8,131.4,385.1,131.4,385.1,132.15,383.8,134,383.2,134,383.2,136.35,382.4,138.85,383.3,138.85,383.3,141.35,384.1,142.65,386.25,142.65,386.25,144,388.3,143.3,390.3,143.3,390.3,143.1,390.9,142.7,391.35,142.7,391.35,142.6,391.55,142.45,391.75,142.45,391.75,138.9,398.7,135.35,405.65,135.35,405.65,134.2,406.15,133.2,406.25,133.2,406.25,133,406.25,132.9,406.25,132.9,406.25,131.6,408.25,130.3,410.3,130.3,410.3,139.65,410.6,141.65,412.65,141.65,412.65,143.9,414.75,139.55,418.7,139.55,418.7,133.3,429.2,129.6,428.35,129.6,428.35,126.85,425.15,123.45,423.15,123.45,423.15,123.35,423.2,123.4,423.25,123.4,423.25,123.2,423.5,123.15,423.7,123.15,423.7,120.95,427.6,118.3,430.9,118.3,430.9,118.15,431.05,118.1,431.1,118.1,431.1,115.9,431.45,113.85,431.65,113.85,431.65,113.25,431.65,112.75,431.75,112.75,431.75,114.35,435.45,116,439.15,116,439.15,115.85,440.1,115.25,440.6,115.25,440.6,114.65,441.05,113.5,441.1,113.5,441.1,114.1,442.95,114.75,444.75,114.75,444.75,114.1,445.75,113.55,446.45,113.55,446.45,113.45,446.6,113.4,446.6,113.4,446.6,111.65,448.35,109.65,448.7,109.65,448.7,108.25,448.9,106.65,448.45,106.65,448.45,105.25,448.15,103.75,447.2,103.75,447.2,103.4,449.35,103.1,451.45,103.1,451.45,101.15,452.2,99.5,452.55,99.5,452.55,97.3,453.05,95.65,452.75,95.65,452.75,93.15,452.3,91.55,450.25,91.55,450.25,91.45,450.4,91.4,450.55,90.3,448,90.8,449.3,91.55,450.25,90.5,447.4,90.4,447.7,90.3,448,88.9,447.2,89.65,447.35,90.5,447.4,88.7,447.45,88.8,447.35,88.9,447.2,88.9,447.2,87,446.9,85.5,446.25,85.5,446.25,83.65,445.4,82.6,444.1,82.6,444.1,82,443.45,81.6,442.6,81.6,442.6,81.35,441.95,81.15,441.25,81.15,441.25,82.55,439.15,84,437.1,80.6,433.9,81.6,435.95,84,437.1,87.05,432.6,87.55,431.8,88.05,431,88.05,431,88.35,430.5,88.7,430,88.7,430,87.85,429.5,87.35,428.7,87.35,428.7,83.95,431.3,80.6,433.9,84,437.1,85.1,435.35,86.2,433.65,86.2,433.65,86.65,433.1,87.05,432.6,87.75,433.5,87.3,433.05,87.05,432.6,93.7,437.2,90,436.25,87.75,433.5,94.4,435.65,94.05,436.45,93.7,437.2,94.4,435.65,93.25,435.5,92.25,435.1,92.25,435.1,90.75,434.4,89.5,433.25,89.5,433.25,89.1,432.65,88.7,432.05,88.7,432.05,88.35,431.5,88.05,431,87,434.55,86.55,434.15,86.2,433.65,87,434.55,87.45,435.15,88.1,435.7,88.1,435.7,89.4,436.65,91.15,437.3,91.15,437.3,92.1,437.75,93.2,438,93.2,438,93.45,437.6,93.7,437.2,86.95,428.2,87.05,428.5,87.35,428.7,80.3,433.15,83.65,430.65,86.95,428.2,86.35,426.45,86.55,427.4,86.95,428.2,81.6,442.6,84.3,438.6,87,434.55,88.1,435.7,85.35,439.9,82.6,444.1,85.5,446.25,88.35,441.8,91.15,437.3,91.55,450.25,94.15,443.85,96.7,437.45,96.7,437.45,95.95,436.9,95.15,436.4,95.15,436.4,94.95,436.9,94.75,437.35,94.75,437.35,94.6,437.8,94.4,438.25,90.5,447.4,92.45,442.85,94.4,438.25,94.4,438.25,93.8,438.2,93.3,438.05,93.3,438.05,91.1,442.65,88.9,447.2,96.7,437.45,98,438.2,99.4,438.65,99.4,438.65,100.6,439,101.85,439.1,101.85,439.1,103.35,439.15,104.9,438.9,104.9,438.9,105,438.35,105.05,437.8,105.05,437.8,99.6,438.3,95.65,435.3,95.65,435.3,95.55,435.55,95.45,435.75,95.45,435.75,95.3,436.1,95.15,436.4,95.65,452.75,97.5,445.7,99.4,438.65,93.7,437.2,94.2,437.25,94.75,437.35,93.2,438,93.25,438.05,93.3,438.05,95.45,435.75,94.95,435.75,94.4,435.65,95.65,435.3,95.9,434.65,96.2,434,96.2,434,97.1,431.75,98.05,429.5,98.05,429.5,97.8,429.4,97.55,429.3,97.55,429.3,95.95,432.5,94.4,435.65,95.45,428.15,96.4,428.8,97.55,429.3,92.25,435.1,93.85,431.6,95.45,428.15,89.5,433.25,91.6,430,93.7,426.75,92.8,426,93.2,426.4,93.7,426.75,88.7,432.05,90.75,429,92.8,426,94.4,427.4,94.9,427.8,95.45,428.15,93.7,426.75,94.05,427.05,94.4,427.4,105.25,436.5,105.15,437.15,105.05,437.8,102.75,436.6,104,436.65,105.25,436.5,100.15,436.05,101.4,436.45,102.75,436.6,97.75,434.95,98.9,435.65,100.15,436.05,96.2,434,97,434.55,97.75,434.95,98.05,429.5,98.75,429.8,99.45,430.1,99.45,430.1,99.95,430.35,100.5,430.5,100.5,430.5,100.95,430.6,101.4,430.7,101.4,430.7,104.2,431.25,105.95,430.1,105.95,430.1,108.1,428.55,108.4,424.15,108.4,424.15,108.45,424.05,108.4,423.95,108.4,423.95,109,421.6,105.35,419.3,105.35,419.3,104.15,418.75,103.1,418.05,103.1,418.05,100.55,416.55,98.6,414.9,98.6,414.9,97,413.5,95.9,411.9,95.9,411.9,93,408.45,91.8,409.05,91.8,409.05,90.65,408.8,89.35,418,89.35,418,89.7,421.25,93,425.65,93,425.65,93.7,426.5,94.4,427.4,97.75,434.95,98.6,432.5,99.45,430.1,96.15,393.7,90.6,403.85,95.9,411.9,90.9,423.85,91.1,424.15,91.35,424.35,91.35,424.35,91.55,424.65,91.7,424.9,91.7,424.9,91.85,425.05,91.95,425.15,91.95,425.15,92.35,425.55,92.8,426,100.15,436.05,100.75,433.4,101.4,430.8,101.4,430.8,100.9,430.6,100.5,430.5,104.9,438.9,104.9,439,104.9,439.1,104.9,439.1,105.65,439.2,106.35,439.3,106.35,439.3,106.2,435.5,106.05,431.65,105.9,431.6,105.95,431.65,106.05,431.65,105.25,436.5,105.6,434.05,105.9,431.6,105.9,431.6,104.85,431.5,103.95,431.35,103.95,431.35,103.35,433.95,102.75,436.6,106.05,431.65,106.8,431.75,107.55,431.8,107.55,431.8,108.8,431.85,110.1,431.85,110.1,431.85,110.4,431.85,110.75,431.85,110.75,431.85,111.75,431.8,112.75,431.75,113.85,431.65,114.85,430.05,117.95,420.75,116.4,421.05,117.2,420.95,117.95,420.75,115.95,421.1,116.15,421.1,116.4,421.05,112.35,421.2,114.25,421.25,115.95,421.1,109.7,420.8,111.1,421.1,112.35,421.2,107.8,420.45,108.8,420.65,109.7,420.8,105.35,419.3,106.5,419.9,107.8,420.45,101.4,430.8,101.4,430.75,101.4,430.7,103.95,431.35,102.6,431.1,101.4,430.8,108.75,439.5,107.6,439.5,106.35,439.3,108.75,439.5,108.55,437.45,108.35,435.45,108.35,435.45,109.1,437.4,109.9,439.3,110.55,439.25,110.2,439.3,109.9,439.3,110.55,439.25,109.05,435.5,107.55,431.8,117.95,420.75,118.3,420.7,118.6,420.6,118.6,420.6,118.85,420.5,119.05,420.45,119.05,420.45,120.05,420.1,121.05,419.6,121.05,419.6,121.85,419.15,122.65,418.65,122.65,418.65,123.4,418,124.2,417.35,124.2,417.35,124.8,416.7,125.35,416.1,125.35,416.1,125.65,415.75,125.9,415.4,125.9,415.4,125.9,415.4,125.95,415.3,125.95,415.3,126.6,414.65,127,414.05,127,414.05,127.05,413.95,127.1,413.9,127.1,413.9,127.5,413.3,127.8,412.7,127.8,412.7,128.35,411.4,128.6,410.25,128.6,410.25,128.6,410.1,128.65,409.9,128.65,409.9,128.65,409.85,128.65,409.8,128.65,409.8,128.9,407.1,126.5,403.55,126.5,403.55,126.25,411.9,121.1,414.6,121.1,414.6,120.1,415.1,118.95,415.45,118.95,415.45,118.8,415.5,118.7,415.55,118.7,415.55,117.95,415.75,117.2,415.9,117.2,415.9,115.6,416.2,114.1,416.3,114.1,416.3,112.8,416.25,111.55,416.1,111.55,416.1,108.4,415.6,105.4,413.9,105.4,413.9,102.45,412.15,100.45,410.05,100.45,410.05,98.05,407.65,96.85,404.75,96.85,404.75,96.7,404.5,96.6,404.2,96.6,404.2,96.3,403.3,96.15,402.45,96.15,402.45,95.1,398.05,98.1,394.5,98.1,394.5,98.4,394.45,98.75,394.45,98.75,394.45,99.15,393.5,99.6,392.55,99.6,392.55,99.65,392.4,99.7,392.25,88.7,430,88.9,429.65,89.15,429.3,89.15,429.3,87.35,428.2,87.1,426,90.05,428.05,91,426.6,91.95,425.15,89.15,429.3,89.6,428.7,90.05,428.05,90.05,428.05,89.35,427.95,88.75,427.45,88.75,427.45,88.65,427.25,88.55,427.1,88.55,427.1,88.15,426.55,87.85,425.5,91.7,424.9,90.2,426.15,88.75,427.45,91.35,424.35,89.95,425.7,88.55,427.1,99.5,452.55,100.65,445.85,101.85,439.1,104.7,440.65,104.2,443.95,103.75,447.2,104.9,439.1,104.8,439.85,104.7,440.65,106.35,440.8,106.5,444.65,106.65,448.45,104.7,440.65,105.55,440.8,106.35,440.8,108.9,440.7,109.25,444.7,109.65,448.7,106.35,440.8,107.75,440.9,108.9,440.7,108.9,440.7,108.8,440.1,108.75,439.5,109.9,439.3,110.1,439.9,110.35,440.5,110.35,440.5,110.65,440.4,111,440.3,111,440.3,112.05,440.05,112.95,439.7,112.95,439.7,112.7,439.1,112.5,438.5,112.5,438.5,111.55,438.95,110.55,439.25,110.35,440.5,112.4,444.25,113.4,446.6,113.55,446.45,112.25,443.4,111,440.3,112.95,439.7,113.2,440.4,113.5,441.1,115.25,440.6,113,436.2,110.75,431.85,112.5,438.5,111.3,435.2,110.1,431.85,123.6,422.8,123.5,422.95,123.45,423.15,123.9,422.2,123.75,422.5,123.6,422.8,124.3,421.2,124.1,421.7,123.9,422.2,126.1,417.4,125.5,418.6,124.3,421.2,126.45,416.5,126.35,416.75,126.1,417.4,127.2,414.5,126.85,415.55,126.45,416.5,127.35,414.1,127.3,414.25,127.2,414.5,127,414.05,127.2,414.05,127.35,414.1,137.85,417,139.6,417.75,139.55,418.7,127.6,414.05,132.75,415.55,137.85,417,127.2,414.5,127.4,414.25,127.6,414.05,131.55,419.6,129.25,417.55,126.1,417.4,128.95,423.35,129.45,424.35,131.55,419.6,124.3,421.2,126.8,421.4,128.95,423.35,127.6,414.05,128.95,412.15,130.3,410.3,131.4,406.15,132.15,406.3,132.9,406.25,130.7,406.05,131.05,406.1,131.4,406.15,129.1,405.45,129.95,405.8,130.7,406.05,126.45,403.35,127.5,404.6,129.1,405.45,126.45,403.3,126.45,403.3,126.45,403.35,126.45,403.3,125.65,408.2,124,410.65,124,410.65,123.1,412,121.75,413,121.75,413,120.65,413.75,119.25,414.35,117.35,414.95,118.35,414.7,119.25,414.35,116.45,415.2,116.9,415.1,117.35,414.95,115.3,415.45,115.8,415.35,116.45,415.2,114.5,415.55,114.7,415.45,115.3,415.45,111.8,415.55,113.1,415.65,114.5,415.55,108.05,414.65,109.85,415.35,111.8,415.55,105.6,413.5,106.8,414.15,108.05,414.65,101.8,410.7,103.65,412.4,105.6,413.5,101.1,410,101.45,410.35,101.8,410.7,100.65,409.5,100.85,409.75,101.1,410,96.85,403.65,97.8,406.6,100.65,409.5,96.45,401.65,96.55,402.6,96.85,403.65,96.45,401.65,95.95,398.1,98.1,394.5,139,393.35,136.1,399.8,133.2,406.25,139,393.35,137.8,393.5,136.7,393.35,136.7,393.35,133.7,399.7,130.7,406.05,142.45,391.75,141.65,392.6,140.2,393.05,140.2,393.05,139.6,393.3,139,393.35,130.95,386.25,131.15,385.7,131.4,385.1,130.8,387.45,130.75,386.8,130.95,386.25,131.5,389.9,130.75,388.7,130.8,387.45,132.05,390.65,131.75,390.3,131.5,389.9,135.45,393,133.35,392.2,132.05,390.65,136.7,393.35,136.05,393.2,135.45,393,142.65,390.05,142.5,390.6,142.1,391,142.1,391,142.05,391.15,141.9,391.35,141.9,391.35,141.15,392.1,139.9,392.55,139.9,392.55,139.3,392.75,138.75,392.8,138.75,392.8,137.7,392.95,136.7,392.8,136.7,392.8,136.15,392.65,135.55,392.45,135.55,392.45,133.7,391.75,132.55,390.4,132.55,390.4,132.25,390.1,132,389.7,132,389.7,131.4,388.65,131.4,387.5,131.4,387.5,131.4,386.95,131.45,386.4,131.45,386.4,131.7,385.9,131.95,385.35,131.95,385.35,132.7,384.2,134.25,383.7,134.25,383.7,136.4,382.95,138.6,383.75,138.6,383.75,140.9,384.5,142,386.4,142,386.4,143.35,388.25,142.65,390.05,141.4,389.05,141.05,390,139.6,390.35,139.6,390.35,138.2,390.6,136.65,389.9,136.65,389.9,135.1,389.3,134.3,388.25,134.3,388.25,133.5,387,133.95,386,133.95,386,134.25,385.05,135.7,384.8,135.7,384.8,137.05,384.5,138.6,385.1,138.6,385.1,140.2,385.65,140.95,386.85,140.95,386.85,141.75,388.05,141.4,389.05,140.6,388.8,140.35,389.55,139.25,389.85,139.25,389.85,138.1,389.95,136.85,389.5,136.85,389.5,135.65,388.95,135,388.1,135,388.1,134.3,387.15,134.65,386.3,134.65,386.3,134.9,385.55,136.1,385.35,136.1,385.35,137.15,385.1,138.35,385.55,138.35,385.55,139.65,386.05,140.3,387.05,140.3,387.05,140.9,388,140.6,388.8,126.45,403.35,129.25,397,132.05,390.65,105.1,397.55,102.85,403.55,100.65,409.5,102.1,395.35,103.6,396.45,105.1,397.55,100.8,392.95,101.45,394.15,102.1,395.35,96.85,403.65,98.85,398.3,100.8,392.95,101.8,410.7,104.1,404.6,106.4,398.55,106.4,398.55,105.75,398.05,105.1,397.55,106.95,397.15,106.3,396.6,105.65,396.05,105.1,397.55,105.35,396.8,105.65,396.05,106.95,397.15,106.65,397.85,106.4,398.55,107.4,397.5,107.15,397.35,106.95,397.15,108.3,397.85,107.85,397.7,107.4,397.5,108.3,397.85,109.45,394.8,110.65,391.75,104.75,386.85,107.7,389.3,110.65,391.75,102.75,383.3,103.75,385.05,104.75,386.85,100.2,389.25,101.5,386.25,102.75,383.3,101.35,391.45,100.95,390.65,100.5,389.9,103.2,394.25,102.25,392.85,101.35,391.45,105.65,396.05,104.4,395.15,103.2,394.25,106.4,398.55,107.7,399.5,109.05,400.45,109.05,400.45,109.55,400.6,110.1,400.8,110.1,400.8,110.45,399.85,110.75,398.9,110.75,398.9,109.55,398.35,108.3,397.85,110.1,400.8,107.85,407.15,105.6,413.5,101.35,391.45,101.05,392.2,100.8,392.95,99.6,392.55,98,397.1,96.45,401.65,100.8,392.95,100.4,392.2,99.95,391.45,99.95,386.6,99.7,387.15,99.45,387.7,110.65,391.75,110.65,391.75,110.7,391.75,110.7,391.75,110.7,391.75,110.7,391.75,110.7,391.75,110.75,391.4,110.85,391.1,110.85,391.1,107.95,388.65,105.1,386.25,105.1,386.25,103.8,383.65,102.55,381.1,99.95,386.6,101.25,383.85,102.55,381.1,99.8,386.5,99.85,386.55,99.95,386.6,102.55,381.1,102.5,381,102.5,380.95,102.5,380.95,102.55,380.85,102.6,380.75,102.6,380.75,103.05,378.5,103.55,376.3,103.55,376.3,102.6,378.95,101.6,381.55,101.6,381.55,100.7,384.05,99.8,386.5,111.8,415.55,114.3,408.95,116.85,402.4,116.85,402.4,113.5,401.6,110.1,400.8,114.5,415.55,116.6,408.9,118.65,402.3,118.65,402.3,117.8,402.35,116.95,402.4,116.95,402.4,116.9,402.4,116.85,402.4,119.25,414.35,121.8,408.2,124.35,402.05,124.35,402.05,124.3,402.05,124.3,402,124.3,402,121.45,402.15,118.65,402.3,125.9,402.65,126.15,403,126.45,403.3,125.45,403.9,125.7,403.3,125.9,402.65,121.75,413,123.6,408.45,125.45,403.9,125.45,403.9,124.9,403,124.35,402.05,125.05,400.8,125.45,401.8,125.9,402.65,126.05,398.4,125.55,399.6,125.05,400.8,125.75,398.65,125.9,398.5,126.05,398.4,124.35,402.05,125.05,400.35,125.75,398.65,125.75,398.65,124.65,399.45,123.6,400.2,123.6,400.2,123.45,400.4,123.35,400.55,123.35,400.55,121.3,400.6,119.25,400.65,118.65,402.3,118.95,401.5,119.25,400.65,119.25,400.65,118.4,400.65,117.55,400.7,117.55,400.7,117.2,401.55,116.85,402.4,115.1,400.75,115.05,400.75,115,400.7,115,400.7,112.9,399.8,110.75,398.9,117.55,400.7,116.35,400.7,115.1,400.75,117.95,393.45,116.55,397.1,115.1,400.75,110.85,391.1,114.4,392.25,117.95,393.45,126.9,397.7,126.5,398.05,126.05,398.4,130.5,390.15,128.7,393.95,126.9,397.7,130.4,390.25,130.45,390.2,130.5,390.15,130.4,390.25,128.6,391.55,126.8,392.85,126.8,392.85,126.7,392.85,126.6,392.8,126.6,392.8,122.3,393.15,117.95,393.45,122.85,391.1,124.35,390.8,125.8,390.25,131.7,374.75,128.75,382.5,125.8,390.25,129.05,374,131.3,373.25,131.7,374.75,122.85,391.1,125.95,382.55,129.05,374,121.25,391.15,122.05,391.15,122.85,391.1,116.25,390.35,118.8,391.15,121.25,391.15,114.4,389.7,115.35,390.05,116.25,390.35,110.9,387.85,112.5,388.9,114.4,389.7,109.2,386.5,109.95,387.2,110.9,387.85,107.25,384.5,108.15,385.65,109.2,386.5,105.7,381.85,106.3,383.25,107.25,384.5,104.85,377.6,104.9,379.9,105.7,381.85,105.45,375.75,105.15,376.65,104.85,377.6,105.45,375.75,105.5,375.7,105.5,375.65,105.5,375.65,104.5,376,103.55,376.3,102.55,381.1,102.55,380.9,102.6,380.75,130.75,387.6,130.9,389,130.4,390.25,130.8,387.45,130.8,387.5,130.75,387.6,130.65,386.95,130.8,386.6,130.95,386.25,129.25,388.4,130.15,387.65,130.65,386.95,125.8,390.25,128.45,389.1,129.25,388.4,130.95,386.25,130.95,386.1,131,385.85,131,385.85,131.2,385.45,131.4,385.1,128.95,372.2,133.35,372.6,136.75,372.5,128.95,372.2,128.85,372.15,128.85,372.15,128.7,372.2,128.75,372.15,128.85,372.15,121.25,391.15,125,381.65,128.7,372.2,105.55,375.65,105.5,375.7,105.45,375.75,105.5,375.65,105.5,375.65,105.55,375.65,105.7,381.85,108.9,373.05,112.05,364.25,112.05,364.25,111.3,362.75,110.55,361.25,110.55,361.25,110.55,361.35,110.5,361.4,110.5,361.4,108,368.55,105.5,375.65,109.2,386.5,112.7,376.9,116.25,367.35,116.25,367.35,114.2,365.85,112.1,364.3,112.1,364.3,112.1,364.3,112.05,364.25,122.95,371.6,119.6,380.95,116.25,390.35,117.95,369.35,120.25,370.85,122.95,371.6,110.9,387.85,115.85,370.7,117.95,369.35,128.85,372.15,128.7,372.15,128.5,372.1,128.5,372.1,124.85,370.6,121.15,369.1,121.15,369.1,118.95,367.55,116.75,366,116.75,366,116.5,366.65,116.25,367.35,94.3,379.55,98.2,381.55,101.6,381.55,96.2,385.2,100.3,384.15,94.3,379.55,94.3,379.55,94.1,379.5,93.85,379.35,93.85,379.35,93,381.9,92.1,384.45,93.85,379.35,97.55,369.2,101.25,359,101.25,359,102.15,356.6,103,354.25,103,354.25,103,354.15,103,354.05,102,353.5,103.25,353.1,103.75,352.2,100.7,353.7,101.35,353.7,102,353.5,100.7,353.7,100.5,354.3,100.3,354.85,100.3,354.85,94.95,370.5,89.55,386.15,100.3,354.85,95.35,352.1,93.5,363.05,93.5,363.05,90.05,373.9,86.6,384.75,98.95,353.4,99.85,353.65,100.7,353.7,96.2,351.9,97.2,352.95,98.95,353.4,95.6,349.75,95.35,350.85,96.2,351.9,110.5,361.4,108.5,360.6,106.3,360,106.3,360,104.25,359.45,101.25,359,103,354.25,109.75,356.6,106.3,360,110.95,360.1,110.75,360.7,110.55,361.25,110.95,360.1,109.85,358.5,108.9,356.7,108.9,356.7,108.35,355.55,107.8,354.45,108.9,356.7,110.5,344.4,113.85,349.3,113.85,349.3,113.95,349.4,114.05,349.5,114.05,349.5,117.65,352.75,120.35,354.25,120.35,354.25,122.1,355.1,123.4,355.25,123.4,355.25,119.4,351.65,115.45,348.1,115.45,348.1,112.85,342.85,110.25,337.65,112.65,362.6,111.75,361.45,110.95,360.1,113.75,363.9,113.2,363.3,112.65,362.6,116.75,366,115.25,364.95,113.75,363.9,121.15,369.1,123.1,363.15,125,357.25,125,357.25,125.05,357.05,125.1,356.85,125.1,356.85,124.25,356.05,123.4,355.25,112.65,362.6,112.35,363.4,112.05,364.25,111.95,337.05,112.35,327.7,120.05,324.35,117.1,347.45,114.5,342.25,111.95,337.05,126.75,356.2,121.95,351.8,117.1,347.45,136.5,360.05,131.65,358.15,126.75,356.2,148.6,360.5,142.55,360.25,136.5,360.05,148.6,360.5,148.7,360.4,148.85,360.35,148.85,360.35,149,360.3,149.1,360.25,149.1,360.25,154,357.65,156.65,354.6,117.2,344.2,116.95,343.8,116.65,343.35,116.65,343.35,116.55,343.15,116.45,342.95,116.45,342.95,115.55,341.4,115.2,340.05,115.2,340.05,114.55,337.4,115.4,335.15,115.4,335.15,117,330.3,123.8,329.35,123.8,329.35,130.55,328.3,138.5,331.45,138.5,331.45,146.35,334.65,150.75,340.15,150.75,340.15,153.2,343.35,153.85,346.15,153.85,346.15,154.2,348.2,153.7,350,153.7,350,153.65,350.1,153.65,350.15,153.65,350.15,153.65,350.25,153.6,350.3,153.6,350.3,153.6,350.4,153.55,350.45,153.55,350.45,152.6,353.15,149.95,354.7,149.95,354.7,148,355.75,145.05,356.25,145.05,356.25,140.35,357,135.1,355.75,135.1,355.75,134.9,355.7,134.65,355.6,134.65,355.6,134.35,355.55,134.05,355.45,134.05,355.45,132.3,354.8,130.3,354.15,130.3,354.15,127.35,352.9,124.95,351.3,124.95,351.3,124.7,351.2,124.55,351.05,124.55,351.05,124.3,350.95,124.1,350.75,124.1,350.75,121.15,348.9,119,346.55,119,346.55,118.5,345.95,118.05,345.4,118.05,345.4,117.55,344.75,117.2,344.2,124.1,350.75,125.85,348.25,129.2,348.85,129.2,348.85,132.8,349.6,135.1,355.75,148.05,345.35,152.3,350.95,149.95,354.7,136.95,337.1,143.8,339.55,148.05,345.35,124.15,335.05,130.1,334.45,136.95,337.1,117.05,337.75,119.5,335.45,124.15,335.05,115.2,340.05,115.9,338.75,117.05,337.75,119.65,346.25,117.95,345.5,117.2,344.05,117.2,344.05,117.15,343.9,117.15,343.7,117.15,343.7,116.55,342.45,117.15,341.35,117.15,341.35,117.8,340.15,119.45,339.9,119.45,339.9,121.2,339.5,122.75,340.35,122.75,340.35,124.45,341.1,125.3,342.65,125.3,342.65,126.1,344.05,125.4,345.35,125.4,345.35,125.15,345.75,124.9,346.05,124.9,346.05,124.2,346.65,123.15,346.75,123.15,346.75,121.35,347.1,119.65,346.25,119.8,345.95,118.3,345.3,117.55,343.95,117.55,343.95,117.3,343.3,117.25,342.65,117.25,342.65,117.25,342.1,117.55,341.55,117.55,341.55,118.1,340.5,119.6,340.2,119.6,340.2,121.15,339.85,122.65,340.65,122.65,340.65,124.15,341.3,124.9,342.7,124.9,342.7,125.55,343.85,125.15,344.95,125.15,344.95,125.1,345.05,125.05,345.15,125.05,345.15,124.5,346.25,123,346.45,123,346.45,121.35,346.8,119.8,345.95,124.75,343.6,125.15,344.3,125.15,344.95,122.45,341.55,124.05,342.2,124.75,343.6,119.4,341.1,121.05,340.75,122.45,341.55,117.35,342.4,117.95,341.35,119.4,341.1,117.25,342.65,117.3,342.5,117.35,342.4,146.55,350.85,147.4,352.55,146.8,353.95,146.8,353.95,146.55,354.4,146.2,354.75,146.2,354.75,145.4,355.5,144.05,355.6,144.05,355.6,142.1,355.95,140.1,355,140.1,355,138.35,354.25,137.4,352.85,137.4,352.85,137.15,352.6,137.05,352.3,137.05,352.3,136.15,350.6,137,349.2,137,349.2,137.65,347.7,139.55,347.55,139.55,347.55,141.7,347.05,143.55,348.1,143.55,348.1,145.6,349,146.55,350.85,146.6,352.4,146.6,352.8,146.55,353.15,146.55,353.15,146.5,353.35,146.45,353.5,146.45,353.5,146.4,353.6,146.35,353.7,146.35,353.7,145.6,355.05,143.9,355.25,143.9,355.25,142.1,355.55,140.25,354.7,140.25,354.7,138.45,353.9,137.55,352.25,137.55,352.25,137.15,351.6,137.15,351,137.15,351,137,350.1,137.4,349.45,137.4,349.45,138.05,348.05,139.8,347.85,139.8,347.85,141.7,347.45,143.45,348.4,143.45,348.4,145.3,349.2,146.1,350.9,146.1,350.9,146.1,351,146.15,351.05,146.15,351.05,146.4,351.75,146.6,352.4,146.05,351.7,146.45,352.45,146.55,353.15,137.15,351,137.15,350.55,137.35,350.2,137.35,350.2,138.05,348.85,139.75,348.7,139.75,348.7,141.7,348.25,143.45,349.2,143.45,349.2,145.25,350.05,146.05,351.7,132.55,346.15,130.9,345.4,129.9,344.05,129.9,344.05,129.65,343.75,129.45,343.35,129.45,343.35,128.75,341.7,129.35,340.15,129.35,340.15,130.1,338.5,132,338.2,132,338.2,134.05,337.65,136.05,338.55,136.05,338.55,138.15,339.55,139.15,341.35,139.15,341.35,140.05,343.15,139.3,344.75,139.3,344.75,138.9,345.7,137.95,346.25,137.95,346.25,137.4,346.6,136.65,346.75,136.65,346.75,134.55,347.05,132.55,346.15,130,343.3,129.65,342.6,129.65,341.95,129.9,340.45,129.65,341.15,129.65,341.95,132.25,338.7,130.6,338.95,129.9,340.45,135.85,339,134.05,338.2,132.25,338.7,138.6,341.55,137.7,339.85,135.85,339,139,343.8,139.25,342.65,138.6,341.55,139,343.8,138.9,344.15,138.75,344.5,138.75,344.5,138.15,345.85,136.3,346.3,136.3,346.3,134.55,346.55,132.75,345.75,132.75,345.75,130.95,344.9,130,343.3,138.55,342.25,138.95,343,139,343.8,135.8,339.8,137.65,340.65,138.55,342.25,132.2,339.45,134,338.95,135.8,339.8,129.85,341.2,130.55,339.75,132.2,339.45,129.65,341.95,129.7,341.55,129.85,341.2,117.05,337.75,118.9,333.65,125.05,332.75,125.05,332.75,131.85,331.7,139.75,334.85,139.75,334.85,147.7,338.05,152.05,343.55,152.05,343.55,153.1,344.9,153.85,346.15,129.2,349.25,132.55,349.9,134.65,355.6,124.55,351.05,126.1,348.65,129.2,349.25,124.95,351.3,126.4,349.7,129.05,350.2,129.05,350.2,132.05,350.8,134.05,355.45,125.1,356.85,129.95,358.8,134.8,360.7,134.8,360.7,134.85,360.7,134.85,360.7,134.85,360.7,141.05,360.9,147.25,361.1,147.25,361.1,147.35,361.1,147.45,361,147.45,361,148,360.7,148.6,360.5,133.7,363.05,131.3,367.65,128.95,372.2,129.35,359.45,134.6,362.3,133.7,363.05,125,357.25,127.5,358.5,129.35,359.45,142.45,371.65,148.8,362.6,147.45,361]; public function Test2()
{
start();
} private function start():void
{
var i:int = 0;
graphics.clear();
stage.frameRate = 60;
addEventListener(Event.ENTER_FRAME, function a(e:Event):void
{
if(i >= ptArray.length)
{
removeEventListener(Event.ENTER_FRAME, a);
showGun();
}
graphics.lineStyle(0.1);
graphics.moveTo(ptArray[i], ptArray[i+1]);
graphics.curveTo(ptArray[i+2],ptArray[i+3],ptArray[i+4],ptArray[i+5]);
i+=6;
graphics.moveTo(ptArray[i], ptArray[i+1]);
graphics.curveTo(ptArray[i+2],ptArray[i+3],ptArray[i+4],ptArray[i+5]);
i+=6;
graphics.moveTo(ptArray[i], ptArray[i+1]);
graphics.curveTo(ptArray[i+2],ptArray[i+3],ptArray[i+4],ptArray[i+5]);
i+=6;
});
} private function showGun():void
{
var gun:MovieClip = new GUN() as MovieClip;
addChild(gun);
gun.alpha = 0;
stage.frameRate = 24;
var b:Function = function b(e:Event):void
{
gun.alpha += 0.1;
if(gun.alpha >= 1)
graphics.clear();
};
setTimeout(function():void
{
removeEventListener(Event.ENTER_FRAME, b);
removeChild(gun);
start();
}, 2000);
addEventListener(Event.ENTER_FRAME, b);
}
}
}
结合JSFL/actionscript 实现轮廓动画的更多相关文章
- 开源 iOS 项目分类索引大全 - 待整理
开源 iOS 项目分类索引大全 GitHub 上大概600个开源 iOS 项目的分类和介绍,对于你挑选和使用开源项目应该有帮助 系统基础库 Category/Util sstoolkit 一套Cate ...
- 史上最全的常用iOS的第三方框架
文章来源:http://blog.csdn.net/sky_2016/article/details/45502921 图像: 1.图片浏览控件MWPhotoBrowser 实现了一个照片 ...
- 常用iOS的第三方框架
图像:1.图片浏览控件MWPhotoBrowser 实现了一个照片浏览器类似 iOS 自带的相册应用,可显示来自手机的图片或者是网络图片,可自动从网络下载图片并进行缓存.可对图片进行缩放等 ...
- 开源 iOS 项目分类索引大全
GitHub 上大概600个开源 iOS 项目的分类和介绍,对于你挑选和使用开源项目应该有帮助 系统基础库 Category/Util sstoolkit 一套Category类型的库,附带很多自定义 ...
- 3000本IT书籍下载地址
http://www.shouce.ren/post/d/id/112300 黑客攻防实战入门与提高.pdfhttp://www.shouce.ren/post/d/id/112299 黑 ...
- iOS开发-常用第三方开源框架介绍(你了解的ios只是冰山一角)--(转)
图像: 1.图片浏览控件MWPhotoBrowser 实现了一个照片浏览器类似 iOS 自带的相册应用,可显示来自手机的图片或者是网络图片,可自动从网络下载图片并进行缓存.可对图片进行缩放等操作. 下 ...
- iOS开发--开源库
图像: 1.图片浏览控件MWPhotoBrowser 实现了一个照片浏览器类似 iOS 自带的相册应用,可显示来自手机的图片或者是网络图片,可自动从网络下载图片并进行缓存.可对图片进行缩 ...
- iOS - 常用iOS的第三方框架
图像:1.图片浏览控件MWPhotoBrowser 实现了一个照片浏览器类似 iOS 自带的相册应用,可显示来自手机的图片或者是网络图片,可自动从网络下载图片并进行缓存.可对图片进行缩放等 ...
- IOS-常用第三方开源框架介绍
iOS开发-常用第三方开源框架介绍(你了解的ios只是冰山一角) 时间:2015-05-06 16:43:34 阅读:533 评论:0 收藏:0 [点我收藏+] ...
随机推荐
- Xcode下修改plist文件
plist文件在Mac OS下的重要性,如同Windows下的注册表文件.而很多场景下面,我们需要修改plist文件来实现一些"自动化"操作 Mac OS本身提供了一个工具:P ...
- Android之设备唯一识别
唯一Android的设备ID String androidId = Settings.Secure.getString(getContentResolver(),Settings.Secure.AND ...
- Android Activity启动流程源码全解析(1)
前言 Activity是Android四大组件的老大,我们对它的生命周期方法调用顺序都烂熟于心了,可是这些生命周期方法到底是怎么调用的呢?在启动它的时候会用到startActivty这个方法,但是这个 ...
- jquery validate验证方法
实例: equalTo方法 equalTo(其他)返回:布尔 说明:要求元素与另一个元素相同 等于(其他) 其他 类型:选择器 元素的选择器用于比较当前值 例子: 使“字段”必须与#other相同 1 ...
- 动态SQL(章节摘要)
1,使用动态SQL能够在依赖对象不存在时创建子程序. 2.动态SQL主要利用EXECUTE IMMEDIATE语句运行DML,DDL,DCL等语句操作. 3,假设使用了绑定变量,则必须在EXECUTE ...
- ubuntu下nodejs开发环境搭建
1.安装nodejs sudo apt install -y nodejs 2.更新npm到最新版本 sudo npm i -g npm 3.npm配置为淘宝镜像 sudo npm config se ...
- [leetcode]Unique Binary Search Trees II @ Python
原题地址:https://oj.leetcode.com/problems/unique-binary-search-trees-ii/ 题意:接上一题,这题要求返回的是所有符合条件的二叉查找树,而上 ...
- CSS-图片不变形设置
不管网页做的美还是丑,有一个问题始终是无法躲避的,就是有的时候会遇到图片变形的问题,之前遇到过这种问题解决过,不过还是整体的重新研究了一下图片,其中主要涉及到的知识点就是max-width和max-h ...
- C# 键值对数据排序
对于键值对的数据进行排序方法总结. /*使用排序字典,默认只支持升序 SortedDictionary<DateTime, String> dd = new SortedDictionar ...
- js获取当前域名、Url、相对路径和参数
用 Javascript 可以单独获取当前域名.Url.相对路径和参数,所谓单独攻取,即域名不包括网页文件的路径和参数.参数不包括域名和网页文件路径,下面分别介绍. 一.js获取当前域名有2种方法 1 ...