现在的位置: 首页 > 综合 > 正文

【flash开发】通用例子系统

2014年09月05日 ⁄ 综合 ⁄ 共 1805字 ⁄ 字号 评论关闭

导读:
  Configurable rule based particle behavior.
  Easily extensible
  Both a full featured object orientated syntax, and a simplified quick object syntax.
  The example below uses the simplified syntax for all of the effects, they can be seen here:

通用例子库,FLASH 开发者的又一大福音,开源的例子系统库,包含了多种例的渲染等,源页面有一个非常酷的FLASH实例,大家可以看一下,然后下载MIT LICENSE的共享库

我们要感谢这些勤劳而又善良的开源开发者

import com.roguedevelopment.pulse.simple.SimpleParticles;
[Embed(source="snowflake.png")]
protected var snowflake:Class;

[Embed(source="man.png")]
protected var man:Class;
[Embed(source="smoke.png")]
protected var smoke:Class;
[Embed(source="spark.png")]
protected var spark:Class;

SimpleParticles.createEmitter({ image:snowflake ,
fade:[9000],
minScale:0.1,
maxScale:1,
minAngle:250,
rotateToAngle:true,
maxAngle:290,
pps:10,
gravity:3,
maxSpeed: 105,
minSpeed:60,
lifespan:9000,
x:250, y:300, movement:true });

SimpleParticles.createEmitter({ image:spark ,
fade:[6000],
scale:[4000,0.01,1],
minAngle:210,
maxAngle:330,
pps:55, gravity:5,
maxSpeed: 140, minSpeed:80,
lifespan:6000, x:250, y:240,
movement:true });

SimpleParticles.createEmitter({ image:smoke ,
xOscillate:[1,900], rotate:[-2,2],
fade:[6000],
minScale:0.5, maxScale:1,
minAngle:180, maxAngle:360,
pps:35, gravity:-1.5,
maxSpeed: 13, minSpeed:4,
lifespan:6000,
x:250, y:300, movement:true });

SimpleParticles.createEmitter({ minScale:0.01, maxScale:3,
x:250, y:200,
pps:80, lifespan:1000,
movement:true, minAngle:0,
maxAngle:360} );

SimpleParticles.createEmitter({ x:250, y:200,
rotateToAngle:true, line:true,
size:4, lifespan:4000,
movement:true, mouseSwarm:stage});

SimpleParticles.createEmitter({ image:man , pps:50,
pointSwarm:new Point(1000,700),
rotateToAngle:true, maxSpeed: 110,
minSpeed:100, scale:[5000, 0.05,1 ],
lifespan:6500,
x:20, y:20, movement:true });

  Click the example below to manually cycle.
  You need to upgrade your Flash Player
  This component is licensed under the MIT license.
  

本文转自
http://rogue-development.com/pulseParticle.xml

抱歉!评论已关闭.