[AS3] Tweenerでモザイク処理出来る拡張ライブラリ

凄いものをはっけん!!

私のなじみ深いTweenerに「_mosaic」のプロパティを追加するだけで読み込んだものをモザイク処理してくれる、拡張ライブラリが公開されていました!!!

Tweenerでモザイク処理できるようにしてみた
作者様 本当にありがとうございます!!

使い方もいたって簡単!@24Log様のサイトより一式ダウンロードしてきて、
いつも通りパスを通す。
そんで、いつものimport Tweenerの際にちょっと追加。

import a24.external.tweener.MosaicShortcuts;

MosaicShortcuts.init();

そうすると「alpha」とか「time」とかみたく「_mosaic」が使えてしまいます。
指定するのは何ピクセルのモザイクを作るか。
なので

Tweener.addTween(mc, {_mosaic : 20,time : 1,transition : "easeInOutSine", delay:0.5});

みたいな指定だけで素敵な事になります。
嬉しすぎる〜〜

This movie requires Flash Player 9

上のサンプルのスクリプトも上げときますか。いらんと思いますが・・・

import caurina.transitions.Tweener;
import a24.external.tweener.MosaicShortcuts;

MosaicShortcuts.init();

function onMosaic(e:MouseEvent):void{

	Tweener.addTween(mc, {_mosaic : 20,time : 1,transition : "easeInOutSine", delay:0.5});
	Tweener.addTween(mc, {_mosaic : 0,time : 1,transition : "easeInOutSine", delay:2});

}

btn.addEventListener(MouseEvent.CLICK, onMosaic);

——-2009/06/07 追記——-

Tweenerモザイクプロパティの作者様@24様よりコメントを頂き、
バージョンアップされたそうです!以前のものでも相当感動ダッタンデスケドネ。
最新バージョンのご使用は下記からどうぞ!!

Tweener でモザイクかけるやつを作り直した

タグ:, , , , ,

関連する投稿

This entry was posted in AS3, Flash, Library and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

4 Comments

  1. Posted 2009/06/07 at 11:02 AM | Permalink

    はじめまして、@24 です。
    MosaicShortcuts ご紹介ありがとうございます!
    ただ以前に作ったもので不備も多く。。
    作り直しましたので、よろしければこちらをお使いください。
    http://a24log.weblike.jp/?p=440

  2. admin
    Posted 2009/06/07 at 11:39 PM | Permalink

    @24様

    わぁ作者様自らありがとうございます!!
    しかもパワーアップバージョンですか!?すごいっす。
    また作って見ます〜
    記事にも最新バージョンとしてご紹介させていただきますね〜

  3. Posted 2009/11/08 at 4:39 PM | Permalink

    good!!!!)

  4. Posted 2009/11/11 at 4:54 PM | Permalink

    good !!!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">