デバイスフォントは_rotationを設定して回転させると、見えなくなってしまうので、ビットマップとして複製してから回転をかける。
Created
January 21, 2011 02:03
-
-
Save ngs/789123 to your computer and use it in GitHub Desktop.
デバイスフォントを90度回転
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import flash.display.*; | |
| import flash.geom.*; | |
| var clip:MovieClip; | |
| var clip2:MovieClip = createEmptyMovieClip("clip2", 0); | |
| clip2._x = clip._x+100; | |
| clip2._y = clip._y; | |
| var bmp:BitmapData = new BitmapData(clip._width, clip._height); | |
| clip2.attachBitmap(bmp,1); | |
| bmp.draw(clip); | |
| clip2._width = clip._width; | |
| clip2._height = clip._height; | |
| clip2._rotation = 90; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
