読者です 読者をやめる 読者になる 読者になる

FlashEffで作ってみた。

FlashEffを使用してちょこっと作ってみました。
こんな感じ
http://moeten.info/maidcafe/?m=event&ecid=34

こういったエフェクトが簡単に作れるのが開発効率が高くて便利です。
ソースはこちら

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    creationComplete="init()"
    backgroundAlpha="1" backgroundColor="0xffffff"
    backgroundGradientAlphas="[1,1]" backgroundGradientColors="[0xffffff,0xffffff]"
     width="720" height="310" verticalScrollPolicy="off" horizontalScrollPolicy="off" clipContent="false"
    >
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
import com.jumpeye.flashEff2.filter.aura.FEFAura;
import com.jumpeye.flashEff2.symbol.sparkle.FESSparkle;
private function init():void{
    var fe:FlashEff2Flex = new FlashEff2Flex();
    this.addChild(fe);
    fe.target =myInstance;
    var pattern0:FEFAura = new FEFAura();
    pattern0.speed=1;
    pattern0.alphaPercent=85;
    pattern0.glowColor=10027263;
    pattern0.glowBlurX=4;
    pattern0.glowBlurY=4;
    pattern0.glowStrength=1;
    pattern0.shadowDistance=3;
    pattern0.shadowAngle=90;
    pattern0.shadowColor=16737945;
    pattern0.shadowBlurX=10;
    pattern0.shadowBlurY=10;
    pattern0.shadowStrength=2;
    fe.addFilter(pattern0)
    var pattern1:FESSparkle = new FESSparkle();
    pattern1.preset=4;
    pattern1.maximumParticleSize=7;
    pattern1.maximumParticleSpread=150;
    pattern1.particleDiversity=30;
    pattern1.particleEmissionInterval=0.4;
    pattern1.particleTweenDuration=1;
    pattern1.glowAmount=10;
    pattern1.glowColor=16777215;
    pattern1.emitterSize=0;
    pattern1.tweenDuration=2.0;
    pattern1.tweenType='Cubic';
    pattern1.easeType='easeInOut';
    fe.showTransition=pattern1;
}
]]>
</mx:Script>
<mx:Image id="myInstance" source="@Embed('image.png')" click="navigateToURL(new URLRequest('./?m=event&amp;ecid=34') , '_self' )"
    width="710" height="300" x="2" y="2"/>
</mx:Application>