用flash cc动画预设做做html5 canvas 3d弹球,3d弹起

liujieheng 2014-01-27

来源:flash,as,js兴趣爱好者用flash cc动画预设做做html5 canvas 3d弹球,3d弹起

flash技术网,html5技术网


   

    用flash cc动画预设做做html5 canvas 3d弹球,3d弹起
    以下是js代码:
    (function (lib, img, cjs) {
    
    var p; // shortcut to reference prototypes
    
    // library properties:
    lib.properties = {
    width: 550,
    height: 400,
    fps: 24,
    color: "#FFFFFF",
    manifest: []
    };
    
    // stage content:
    (lib.无标题1 = function(mode,startPosition,loop) {
    this.initialize(mode,startPosition,loop,{});
    
    // 图层 1
    this.instance = new lib.元件4();
    this.instance.setTransform(151,162,1,1,0,0,0,51,90.6);
    
    this.timeline.addTween(cjs.Tween.get(this.instance).wait(1).to({regY:45.5,x:349,y:117},0).wait(1).to({x:361.1,y:117.4},0).wait(1).to({x:373.3,y:118},0).wait(1).to({x:385.3,y:118.8},0).wait(1).to({x:397.4,y:121},0).wait(1).to({x:409.4,y:124},0).wait(1).to({x:421.3,y:127.7},0).wait(1).to({x:433.2,y:131.9},0).wait(1).to({scaleX:1,x:445.1,y:136.8},0).wait(1).to({x:456.8,y:142.3},0).wait(1).to({x:468.4,y:148.6},0).wait(1).to({x:479.9,y:155.8},0).wait(1).to({x:491.1,y:163.9},0).wait(1).to({x:502,y:173.1},0).wait(1).to({x:512.4,y:183.8},0).wait(1).to({x:521.8,y:197},0).wait(1).to({x:528.1,y:214.9},0).wait(1).to({x:525.4,y:236.6},0).wait(1).to({x:514.9,y:247.1},0).wait(1).to({x:502.7,y:252.3},0).wait(1).to({x:490.1,y:255.2},0).wait(1).to({x:477.2,y:256.7},0).wait(1).to({x:464.3,y:257.4},0).wait(1).to({x:451.3,y:257.2},0).wait(1).to({scaleX:1,x:438.3,y:256.4},0).wait(1).to({x:425.3,y:255.1},0).wait(1).to({x:412.2,y:253.2},0).wait(1).to({x:399.2,y:250.9},0).wait(1).to({x:386.1,y:247.7},0).wait(1).to({x:373,y:244},0).wait(1).to({x:359.9,y:242.1},0).wait(1).to({x:346.9,y:248.2},0).wait(1).to({x:333.8,y:273.4},0).wait(1).to({x:320.7,y:292.9},0).wait(1).to({x:307.7,y:310.7},0).wait(1).to({scaleX:1.81,scaleY:0.79,x:294.6,y:337.5},0).wait(1).to({scaleX:1.91,scaleY:0.6,x:281.6,y:321.4},0).wait(1).to({scaleX:1.81,scaleY:0.8,x:268.5,y:288.2},0).wait(1).to({scaleX:1,scaleY:1,x:255.4,y:250.8},0).wait(1).to({x:242.4,y:242.1},0).wait(1).to({x:229.3,y:243.4},0).wait(1).to({x:216.3,y:245.6},0).wait(1).to({x:203.2,y:247.6},0).wait(1).to({scaleX:1,x:190.2,y:248.8},0).wait(1).to({x:177.1,y:249.2},0).wait(1).to({x:164.1,y:248.8},0).wait(1).to({x:151.1,y:247.6},0).wait(1).to({x:142.7,y:245.6},0).wait(1).to({x:134.4,y:243.4},0).wait(1).to({x:126.1,y:242.1},0).wait(1).to({scaleX:1,x:117.6,y:250.8},0).wait(1).to({x:109.3,y:279.1},0).wait(1).to({x:100.9,y:303.3},0).wait(1).to({x:92.5,y:327.9},0).wait(1).to({scaleX:1.63,scaleY:0.78,x:84,y:324.9},0).wait(1).to({scaleX:1.71,scaleY:0.75,x:75.7,y:315.2},0).wait(1).to({scaleX:1.63,scaleY:0.78,x:67.2,y:305.1},0).wait(1).to({scaleX:1,scaleY:1,x:59.1,y:288.5},0).wait(1).to({x:53.7,y:284.4},0).wait(1).to({x:55.6,y:283},0).wait(1).to({x:60.7,y:284.4},0).wait(1).to({x:66.7,y:288.5},0).wait(1).to({x:73.1,y:295.1},0).wait(1).to({x:79.7,y:304},0).wait(1).to({x:86.5,y:315},0).wait(1).to({x:93.5,y:327.9},0).wait(1).to({scaleX:1.5,scaleY:0.8,x:100.5,y:330.2},0).wait(1).to({scaleX:1,scaleY:1,x:107.6,y:316.3},0).wait(1).to({x:114.7,y:313.3},0).wait(1).to({x:121.9,y:312.3},0).wait(1).to({x:129.1,y:313.3},0).wait(1).to({x:136.4,y:316.3},0).wait(1).to({x:143.7,y:321.1},0).wait(1).to({x:151.1,y:327.9},0).wait(1));
    
    }).prototype = p = new cjs.MovieClip();
    p.nominalBounds = new cjs.Rectangle(258.9,271.4,595.3,302);
    
    
    // symbols:
    (lib.元件4 = function() {
    this.initialize();
    
    // 图层 1
    this.shape = new cjs.Shape();
    this.shape.graphics.f("#0066CC").s().p("AlnFBQiViFgBi8QABi7CViFQCViGDSAAQDTAACVCGQCVCFAAC7QAAC8iVCFQiVCGjTgBQjSABiViGg");
    this.shape.setTransform(51,45.5);
    
    this.addChild(this.shape);
    }).prototype = p = new cjs.Container();
    p.nominalBounds = new cjs.Rectangle(0,0,102,91);
    
    })(lib = lib||{}, images = images||{}, createjs = createjs||{});
    var lib, images, createjs;
    用flash cc动画预设做做html5 canvas 3d弹球,3d弹起

Global site tag (gtag.js) - Google Analytics