In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Japanese Text rotation test (Flash 10 only)

Get Adobe Flash player
by nitoyon 06 Feb 2010
    Embed
/**
 * Copyright nitoyon ( http://wonderfl.net/user/nitoyon )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/eVDX
 */

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import org.libspark.betweenas3.BetweenAS3;
    import org.libspark.betweenas3.tweens.ITween;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var s:Sprite = new Sprite();
            s.x = s.y = 465 / 2;
            addChild(s);

            var t:TextField = new TextField();
            t.autoSize = "left";
            t.htmlText = <font size="+60">日本語テスト</font>.toXMLString();
            t.x = -t.textWidth / 2;
            t.y = -t.textHeight / 2;
            s.addChild(t);
            
            var tween:ITween = BetweenAS3.tween(s, 
                { rotationY: 1800, rotationZ: 360 }, null, 16);
            tween.stopOnComplete = false;
            tween.play();
        }
    }
}